繁体   English   中英

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

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

我已经在 SO 上搜索过类似的问题,但没有一个答案有帮助。

我安装卸载docker多次,每次都重启。 我设置了 env 变量,我可以运行 docker,看到它已安装在终端中,但 GUI 无法启动。

在此处输入图像描述

这是我在尝试运行 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.

我在 Windows 11 家庭版上运行它。

任何帮助表示赞赏。

似乎与新的 Docker 版本有关。 降级后,我也能正常工作了。 Docker 版本 4.4.4

通过以管理员身份在 powershell 中运行以下命令,确保您也允许虚拟化: bcdedit /set hypervisorlaunchtype auto

暂无
暂无

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

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