They just run in separate namespaces so that they have the illusion of running totally independently. They share the same Kernel, VFS cache etc. Running docker CLI from WSL will bring you… Awesome mounts performanceīoth your own WSL 2 distro and docker-desktop run on the same utility VM. Your project files should be stored within your WSL 2 distro of choice, you should run the docker CLI from this distro, and you should avoid accessing files stored on the Windows host as much as possible.įor backward compatibility reasons, we kept the possibility to interact with Docker from the Windows CLI, but it is not the preferred option anymore. The first and most important best practice we want to share, is to fully embrace WSL 2. We focused on compatibility to keep you happy with your current development workflow.īut to get the most out of Windwe have some recommendations for you.
We and our early users have accumulated some experience working with it and are excited to share a few best practices to implement in your Linux container projects!ĭocker Desktop with the WSL 2 backend can be used as before from a Windows terminal.
Docker Desktop WSL 2 backend has now been available for a few months for Windows 10 insider users and Microsoft just released WSL 2 on the Release Preview channel (which means GA is very close).