当前位置:首页 » 《随便一记》 » 正文

docker: error during connect: Head “http://%2F%2F.%2Fpipe%2FdockerDesktopLin报错,加装WSL2

21 人参与  2024年10月06日 14:40  分类 : 《随便一记》  评论

点击全文阅读


在windows中安装docker报错
docker: error during connect: Head "http://%2F%2F.%2Fpipe%2FdockerDesktopLin

解决办法:
下载安装WSL2
推荐链接
旧版 WSL 的手动安装步骤
选择想要的版本下载即可
在这里插入图片描述
按部就班安装即可

之后在unbuntu中进行

wsl.exe --update

WSL安装成功后,还需要启用WSL,输入如下命令

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart//或者dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart//并设置默认WSL2。 wsl --set-default-version 2

即可


点击全文阅读


本文链接:http://zhangshiyu.com/post/168309.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1