简体   繁体   English

Docker 无法使用 WSL 在 Windows 11 上启动

[英]Docker fails to start on Windows 11 with WSL

I searched on SO for similar questions already, and none of the answers helped.我已经在 SO 上搜索过类似的问题,但没有一个答案有帮助。

I installed and uninstalled docker many times and restarted every time.我安装卸载docker多次,每次都重启。 I set the env variable, and I can run docker, and see that it's installed in terminal, but the GUI won't startup.我设置了 env 变量,我可以运行 docker,看到它已安装在终端中,但 GUI 无法启动。

在此处输入图像描述

This is the error I get when trying to run a hello world command.这是我在尝试运行 hello world 命令时遇到的错误。

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.我在 Windows 11 家庭版上运行它。

Any help is appreciated.任何帮助表示赞赏。

Seems like and issue with the new Docker release.似乎与新的 Docker 版本有关。 After I downgraded I was able to get it too work.降级后,我也能正常工作了。 Docker version 4.4.4 . Docker 版本 4.4.4

Make sure you allow virtualization too, by running the following command in powershell as Admin: bcdedit /set hypervisorlaunchtype auto通过以管理员身份在 powershell 中运行以下命令,确保您也允许虚拟化: bcdedit /set hypervisorlaunchtype auto

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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