安装Docker提示Unexpected WSL error

报错:

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 (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 (//docs.docker.com/desktop/troubleshoot/overview/#fdiagnose-from-the-terminal)。

网上的各种方法、命令、windows功能开关都尝试过了,但我的电脑上打开Docker一直会报这个错。

Docker的官网上告诉我们在windows上安装有两种方法,一个是使用wsl一个是使用hyper-v。

Install Docker Desktop on Windows | Docker Docs

于是我尝试重新安装docker时,选择不使用wsl,而是hyper-v,一下就打开了。

红色方框不要勾选:即使用hyper-v

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值