简体   繁体   中英

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.

在此处输入图像描述

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM