docker-desktop 启动报错 Docker Desktop - Unexpected WSL error 退出代码 ...

打印 上一主题 下一主题

主题 1871|帖子 1871|积分 5613

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
我在摆设完成docker-desktop后,第二次开机启动时发生如下报错:
Docker Desktop - Unexpected WSL error An unexpected error occurred while executing a WSL command. Either shut down WSL down with wsl --shutdown, and/or reboot your machine. You can also try reinstalling WSL and/or Docker Desktop. If the issue persists, collect diagnostics and submit an issue ⁠.
deploying WSL2 distributions ensuring data disk is available: exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --mount --bare --vhd your path\wsl\DockerDesktopWSL\disk\docker_data.vhdx: 无法将磁盘“\\?your path\Docker\wsl\DockerDesktopWSL\disk\docker_data.vhdx”附加到 WSL2: 拒绝访问。 错误代码: Wsl/Service/AttachDisk/MountVhd/HCS/E_ACCESSDENIED : exit status 0xffffffff checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The filename, directory name, or volume label syntax is incorrect.
这种情况是没有给与your path\Docker\wsl\DockerDesktopWSL\disk\docker_data.vhdx文件镜像访问权利。
解决办法是:

  • 鼠标右键docker_data.vhd,点击属性,点击共享,共享权限给你想要的用户或者管理员。
  • 共享完成后,退出属性界面,重复鼠标右键docker_data.vhd,点击属性,发现共享变为安全,点击编辑,发现你所选择的用户已具备完全控制权。
  • (这一步调不知道是不是必须)打开powershell,输入命令
    1. wsl --shutdown
    复制代码
    重启,再次打开docker-desktop发现问题解决。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

宝塔山

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表