解决:Docker Desktop Unexpected WSL error

背景介绍:

在Window系统中安装Docker时,需要安装WSL虚拟系统,在安装完Docker Desktop启动时可能会出现报错,这往往是因为部分系统设置没有打开。


问题描述

An unexpected error was encountered while executing a WSL command. Commorcauses include access rights issues, which occur after waking the computer or notbeing connected to your domain/active directory.
Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. lfnot sufficient, WSL may need to be reinstalled fully. As a last resort, try touninstall/reinstall Docker Desktop. lf the issue persists please collect diagnostics andsubmit an issue
…😕/docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-termin…
在这里插入图片描述

解决方案:

1、控制面板->程序->启用或关闭 windows 功能,开启 Windows 虚拟化和 Linux 子系统(WSL2)
在这里插入图片描述
2、确保 BIOS 已开启虚拟化,下图检查是否已开启好

注意:如果是已禁用,请在开机时按 F2 进入 BIOS 开启一下,不会设置的可以网上搜索下自己主板的设置方法,Intel 和 AMD 的设置可能稍有不同

在这里插入图片描述

  • 8
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值