Getting Volume Mounts WorkingAnother issue you may run into is getting volume mounts to work in WSL, example running: # docker run -d -mount type=bind,source="$(pwd)"/source,target=/app This command may complain about the source directory not existing.Ī fix for this issue - this fix has been tested on Windows version 1809:ġ. Now Docker should work from WSL: # docker ps
![docker desktop windows 10 home docker desktop windows 10 home](https://user-images.githubusercontent.com/66806548/84450610-dbc69b80-ac0d-11ea-9092-a5a928b4e35a.png)
# apt-get install docker-ce docker-ce-cliOptionally, Docker Compose can be installed: # apt-get install docker-composeFollow the Give WSL Access to Docker instructions above if you haven't done already. # add-apt-repository "deb $(lsb_release -cs) stable" Install Docker in WSLRun these commands for Ubuntu WSL ( more details here): # apt-get update Make sure the following packages are installed - if they aren't, install them: apt-transport-https, ca-certificates, curl, gnupg-agent, software-properties-common # curl -fsSL | sudo apt-key add. Secure MethodFollow these instructions to use the secure method WSL Interoperability with Docker. # export DOCKER_HOST=tcp://127.0.0.1:2375 You can also add to ~/.bashrc file so it's auto loaded. After Docker is installed in WSL (instructions below) run this CLI command: Go to Docker Desktop > Settings > Enable: Expose daemon on tcp://localhost:2375 without TLSĢ. Give WSL Access to DockerWhen Docker Desktop is running in Windows there are two options for allow WSL access to Docker.
![docker desktop windows 10 home docker desktop windows 10 home](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/414549/9159a9cc-9cd2-3f44-f67d-82fbcf59c424.png)
Getting Docker Desktop on Windows 10 requires Windows 10 Pro - Windows 10 Home will not work.After getting WSL installed on Windows 10, download Docker Desktop for Windows.
![docker desktop windows 10 home docker desktop windows 10 home](https://docs.docker.com/desktop/windows/images/docker-tutorial-win.png)
#Docker desktop windows 10 home how to#
Knowledge Base / MS OS / Install Docker on Windows 10 with WSLThese direction will explain how to get Docker (Docker Desktop) working on Windows 10 with WSL (Windows Subsystem for Linux).