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

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-完成。

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值