

#Docker doesn't start docker for mac windows
With Docker Desktop's WSL 2 backend, Docker integrates with Windows in a fairly elegant way, and the docker client can be launched from either Powershell or Linux.

If you want Docker to work on Windows and WSL 2, installing Docker Desktop is most likely the way to go. See details regarding the companion Github repo by scrolling to the bottom.Īre you sure you don't want Docker Desktop?īefore proceeding, let's note that Docker Desktop is amazing. Plenty more nuance and decisions below, of course. Rather than launch a Windows-based Docker client, launch docker inside WSL.If sharing and privileged access without sudo are desired, configure the docker group to have the same group ID across all WSL instances.If sharing the Docker daemon between WSL instances is desired, configure it to use a socket stored in the shared /mnt/wsl directory.Instead of using an init system such as systemd to launch the Docker daemon, launch it by calling dockerd manually.This article attempts to explore such a process and options along the way.Ĭontrary to what the length of this article might suggest, getting Docker working on WSL is fairly simple. However, due to both WSL and Docker complexities, a little tender loving care is required to get Docker up and running. Docker works on WSL 2, and without requiring the robust but heavy Docker Desktop if that is undesirable. Windows Subsystem for Linux 2 sports an actual Linux kernel, supporting real Linux containers and Docker.
