Search code examples
windowsdockerwindows-subsystem-for-linuxwindows-11

Docker fails to start on Windows 11 with WSL


I searched on SO for similar questions already, and none of the answers helped.

I installed and uninstalled docker many times and restarted every time. I set the env variable, and I can run docker, and see that it's installed in terminal, but the GUI won't startup.

enter image description here

This is the error I get when trying to run a hello world command.

docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified.

I am running it on a Windows 11 Home version.

Any help is appreciated.


Solution

  • Seems like and issue with the new Docker release. After I downgraded I was able to get it too work. Docker version 4.4.4.

    Make sure you allow virtualization too, by running the following command in powershell as Admin: bcdedit /set hypervisorlaunchtype auto