Windows 10 Linux Subsystem Docker
Wsl 2 has better overall performance and we recommend using it.
Windows 10 linux subsystem docker. Using docker in wsl 2. Launch a new wsl bash shell and a new tab in your browser and head to the official docker ce documentation here. Wsl2 is a substantial improvement over wsl and offers significantly faster file system performance and full system call capabilities. The most recent version of docker community edition that has been verified to run on windows subsystem linux is 17 09 0 so lets install it on our sub system.
First thing s first lets get rid. Updated on june 2nd 2020 in dev environment docker. As a windows insider i tried the windows subsystem for linux since day 1 and i really enjoyed it. Installing docker on the windows subsystem for linux.
With docker desktop running on wsl 2 users can leverage linux workspaces and avoid having to maintain both linux and windows build scripts. Windows subsystem for linux has two different versions to choose between during the installation process. Windows subsystem for linux provides functionality for linux files scripts and programs in windows 10 and windows server 2019. Setting up docker for windows and wsl to work flawlessly with a couple of tweaks the wsl windows subsystem for linux also known as bash for windows can be used with docker for windows.
March 2 2020 by matt hernandez fiveisprime last june the docker team announced that they will be investing in getting docker running with the windows subsystem for linux wsl. In this article install windows subsystem for linux. Docker has realized that microsoft s new windows subsystem for linux 2 has made windows much more attractive both to docker and its container developers for both windows and linux platforms. Installing the docker client on windows subsystem for linux ubuntu.
Windows subsystem for linux wsl 2 introduces a significant architectural change as it is a full linux kernel built by microsoft allowing linux containers to run natively without emulation. Tip the docker ce documentation has installation guides for ubuntu debian fedora and centos. There is another approach for such cases that uses windows subsystem for linux wsl and allows running linux programs including docker on the windows platform. Next we need to install docker and docker compose on the windows subsystem for linux.
Install docker on windows subsystem for linux v2 ubuntu the windows subsystem for linux v2 is available in preview for windows 10 users. All of this is made possible with the recent changes to the architecture of wsl to run within a lightweight virtual machine vm which we talked about in an earlier blog post about wsl 2.