window docker desktop 安装失败的问题

 

- An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
- Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue ([https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal](https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal)).

 

 

解决方案

需要重新卸载 wsl ,重启后重新安装 docker desktop 即可。

 

wsl 卸载

  • 打开 “控制面板”。
  • 点击”程序”。
  • 选择”程序和功能”。
  • 在菜单的左侧选择”启用或关闭Windows功能”。
  • 取消勾选”适用于Linux的Windows子系统”选项。
  • 单击”确定”按钮。
  • 您需要重启计算机,以使更改生效。

 

成功安装 docker desktop, 如图所示

 

posted @ 2023-07-23 17:38  贝尔塔猫  阅读(1927)  评论(0编辑  收藏  举报