当前位置:首页 » 《我的小黑屋》 » 正文

Docker Desktop-Unexpected WSL error An unexpected error was encountered while executing a WSL comman

23 人参与  2024年04月07日 09:47  分类 : 《我的小黑屋》  评论

点击全文阅读


windows安装docker报错:

Docker Desktop - Unexpected WSL error 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 (wl --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 (Troubleshoot Docker Desktop | Docker Docs).

解决方法:

1- 以管理员身份运行cmd.

2- 执行以下命令 (提示是否重启电脑,选N):

DISM /Online /disable-Feature /FeatureName:VirtualMachinePlatform

DISM /Online /disable-Feature /FeatureName:HypervisorPlatform

DISM /Online /disable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux

3- 手动重启电脑

4- 再次以管理员身份运行cmd.

5- 执行以下命令 (提示是否重启电脑,选N):

DISM /Online /enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux

DISM /Online /enable-Feature /FeatureName:VirtualMachinePlatform

DISM /Online /enable-Feature /FeatureName:HypervisorPlatform

6- 再次手动重启电脑

7-完成。


点击全文阅读


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

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

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

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

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