I had a chance to use Docker Compose on Windows 10 Home, so it's a record.
Enable Docker Compose on Windows 10 Home
Keep your OS up to date with Windows Update
WSL2 is required to run Docker on Windows 10 Home, and to use WSL2, you must first enable Windows features. "[Turn Windows features on or off](https://www.google.com/search?q=Windows%E3%81%AE%E6%A9%9F%E8%83%BD%E3%81" % AE% E6% 9C% 89% E5% 8A% B9% E5% 8C% 96% E3% 81% BE% E3% 81% 9F% E3% 81% AF% E7% 84% A1% E5% 8A% B9 % E5% 8C% 96 & oq = Windows% E3% 81% AE% E6% A9% 9F% E8% 83% BD% E3% 81% AE% E6% 9C% 89% E5% 8A% B9% E5% 8C% 96 % E3% 81% BE% E3% 81% 9F% E3% 81% AF% E7% 84% A1% E5% 8A% B9% E5% 8C% 96 & aqs = chrome..69i57j69i59j0l5j69i61.954j0j9 & sourceid = chrome & ie = UTF-8) Check the inverted part below and install.
[Start PowerShell with administrator privileges](https://www.google.com/search?q=PowerShell%E3%82%92%E7%AE%A1%E7%90%86%E8%80%85% E6% A8% A9% E9% 99% 90% E3% 81% A7% E8% B5% B7% E5% 8B% 95 & oq = PowerShell% E3% 82% 92% E7% AE% A1% E7% 90% 86% E8% 80% 85% E6% A8% A9% E9% 99% 90% E3% 81% A7% E8% B5% B7% E5% 8B% 95 & aqs = chrome..69i57 & sourceid = chrome & ie = UTF-8) Execute the command.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Download and install the following. https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
[Start PowerShell with administrator privileges](https://www.google.com/search?q=PowerShell%E3%82%92%E7%AE%A1%E7%90%86%E8%80%85% E6% A8% A9% E9% 99% 90% E3% 81% A7% E8% B5% B7% E5% 8B% 95 & oq = PowerShell% E3% 82% 92% E7% AE% A1% E7% 90% 86% E8% 80% 85% E6% A8% A9% E9% 99% 90% E3% 81% A7% E8% B5% B7% E5% 8B% 95 & aqs = chrome..69i57 & sourceid = chrome & ie = UTF-8) Execute the command.
wsl --set-default-version 2
The following message is output, but you can pass it through.
For the main differences from WSL 2, https://aka.ms/See wsl2
[Open Task Manager](https://www.google.com/search?q=%E3%82%BF%E3%82%B9%E3%82%AF%E3%83%9E%E3%83] % 8D% E3% 83% BC% E3% 82% B8% E3% 83% A3% E3% 83% BC% E3% 82% 92% E9% 96% 8B% E3% 81% 84% E3% 81% A6 & oq =% E3% 82% BF% E3% 82% B9% E3% 82% AF% E3% 83% 9E% E3% 83% 8D% E3% 83% BC% E3% 82% B8% E3% 83% A3% E3% 83% BC% E3% 82% 92% E9% 96% 8B% E3% 81% 84% E3% 81% A6 & aqs = chrome..69i57.1361j0j9 & sourceid = chrome & ie = UTF-8), the red line is valid It should be.
※reference https://docs.microsoft.com/ja-jp/windows/wsl/install-win10
Follow the page below to install Docker Desktop. Using WSL 2 + Docker on Windows 10 Home
Open Command Prompt (https://www.google.com/search?q=%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83% 97% E3% 83% AD% E3% 83% B3% E3% 83% 97% E3% 83% 88% E3% 82% 92% E9% 96% 8B% E3% 81% 8D & oq =% E3% 82% B3 % E3% 83% 9E% E3% 83% B3% E3% 83% 89% E3% 83% 97% E3% 83% AD% E3% 83% B3% E3% 83% 97% E3% 83% 88% E3 % 82% 92% E9% 96% 8B% E3% 81% 8D & aqs = chrome..69i57.1075j0j9 & sourceid = chrome & ie = UTF-8), execute the following command and complete when the version is output.
docker --version
docker-compose --version
Open Command Prompt (https://www.google.com/search?q=%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83% 97% E3% 83% AD% E3% 83% B3% E3% 83% 97% E3% 83% 88% E3% 82% 92% E9% 96% 8B% E3% 81% 8D & oq =% E3% 82% B3 % E3% 83% 9E% E3% 83% B3% E3% 83% 89% E3% 83% 97% E3% 83% AD% E3% 83% B3% E3% 83% 97% E3% 83% 88% E3 % 82% 92% E9% 96% 8B% E3% 81% 8D & aqs = chrome..69i57.1075j0j9 & sourceid = chrome & ie = UTF-8), execute the following command.
git clone https://github.com/bobtabo/docker2.git docker
cd docker
docker-compose up -d
・ ・ ・
Creating mysql ... done
Creating php ... done
Creating nginx ... done
Recommended Posts