WSL2 安装 Docker Desktop 失败在 Windows 11 上

huangapple go评论55阅读模式
英文:

WSL2 Failed install docker desktop on Windows 11

问题

当我使用Win11版本并使用WSL2来分发Docker Desktop 4.16.3时,启动过程中遇到错误提示:

Docker初始化失败
Docker Desktop正在关闭
Docker.Core.HttpBadResponseException:
{"message":"出现2个错误:\n\t* 配置Docker WSL分发:部署\"docker-desktop\":导入WSL分发\"docker-desktop\":部署WSL分发\"docker-desktop\"(\"C:\\Program Files\\Docker\\Docker\\resources\\wsl\\wsl-bootstrap.tar\" -> \"C:\\Users\208\\AppData\\Local\\Docker\\wsl\\distro\"):退出状态0xffffffff\n\t* 检查isocache是否存在:CreateFile \\\\wsl$\\docker-desktop-data\\isocache\\:找不到网络名称。\n\n"}

我尝试更改版本、更新系统和设置WSL默认版本,以及运行以下命令:

wsl --update
wsl --shutdown

但无法解决问题。

英文:

When I use the win11 version and use wsl2 to distribute Docker Desktop 4.16.3,
Error prompt encountered during startup
enter image description here

Docker failed to initialize
Docker Desktop is shutting down


Docker.Core.HttpBadResponseException:
{"message":"2 errors occurred:\n\t* provisioning docker WSL distros: deploying \"docker-desktop\": importing WSL distro \"docker-desktop\": deploying WSL distro \"docker-desktop\" (\"C:\\\\Program Files\\\\Docker\\\\Docker\\\\resources\\\\wsl\\\\wsl-bootstrap.tar\" -\u003e \"C:\\\\Users\\\\15208\\\\AppData\\\\Local\\\\Docker\\\\wsl\\\\distro\"): exit status 0xffffffff\n\t* checking if isocache exists: CreateFile \\\\wsl$\\docker-desktop-data\\isocache\\: The network name cannot be found.\n\n"}

I try to change the version

Update system

set wsl default version

wsl --upate; wsl --shutdown

There is no way to solve it

答案1

得分: 2

你可以运行 wsl --update,然后在管理员权限的命令提示符中运行 netsh winsock reset,然后重新启动计算机,这对我有效。

英文:

you could run wsl --update then on the cmd as admin netsh winsock reset
then restart the machine worked for me

huangapple
  • 本文由 发表于 2023年2月9日 02:40:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/75390347.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定