Use Docker Compose on Windows 10 Home

I had a chance to use Docker Compose on Windows 10 Home, so it's a record.

Machine specs

things to do

Enable Docker Compose on Windows 10 Home

Prerequisites

Keep your OS up to date with Windows Update

Install subsystem for Linux and Hyper-V

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. 無題.png

Enable virtual machine functionality

[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

Update to WSL2

Download and install the following. https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Set WSL2 as default version

[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. 無題2.png

※reference https://docs.microsoft.com/ja-jp/windows/wsl/install-win10

Install Docker Desktop

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

Try using the Docker Compose command

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

Use Docker Compose on Windows 10 Home
Try Docker on Windows Home (September 2020)
Using Docker on Windows10 Home WSL2
M.S. docker on Windows
Install Docker on Windows 10 PRO
Run openvpn on Docker (windows)
I tried using Docker Desktop for Windows on Windows 10 Home
WordPress with Docker Compose on CentOS 8
Use Docker on your M1 Mac
Use Docker CE (official) on CentOS 8
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
Building a haskell environment with Docker + VS Code on Windows 10 Home
Windows Docker: Disk pressure on WSL files
Run NordVPN on Docker (Windows) Ubuntu container
Use docker in proxy environment on ubuntu 20.04.1
Introducing Docker Desktop for Windows on WSL2
Introduced Docker to Windows 10 Home August 2020 version
Liberty on Docker
Installing Docker Desktop on Windows 10 Home was easy and easy (as of December 2020)
Redmine on Docker
Notes on building Rails6 / PostgreSQL with Docker Compose
How to use docker compose with NVIDIA Jetson
Operate Docker Desktop for Windows on Linux (WSL)
Build a Doker-based development environment on Windows 10 Home 2020 ver. Part 1 Until WSL2-based Docker build
Install Corretto 8 on Windows
Docker installation on CentOS 6
Use perltidy on CentOS 8
Use Flutter on Ubuntu
Easily build Redmine on Windows using WSL2 and Docker
python notes on docker
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
Why we use Docker
Install Docker on Manjaro
Use Puphpeteer with Docker
Use mod_auth_cas on CentOS 8
Use ngrok with Docker
Use bat on Centos.
Use mkdir on ubuntu
Use Corretto 11 on Heroku
Use cpplapack on ubuntu
Docker installation on WSL2
Run phpunit on Docker
Use Java Web Start in an OpenJDK environment on Windows
You are required to use winpty with docker exec [Windows]
Use GDAL with Python with Docker
Run VS Code on Docker
Install Docker on Ubuntu Server 20.04
Ubuntu on Windows Community Preview
Oracle Java 8 on Docker Ubuntu
Use Swift Package on Playground
Manually build OpenJDK on Windows
Ubuntu on Windows build speed
Use devise on multiple models
Fastest Docker introduction (Windows 10 edition)
Hosted Apicurio Studio on Docker
Use native code on Android
Install docker on AWS EC2
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home
[Docker] Use whenever with Docker + Rails
Use PG Backups on Heroku
Install Docker and docker-compose on Raspberry Pi 4, Linux (Debian) and Windows 10, respectively