Docker Desktop 在 Windows中启动失败遇到的问题

Docker Desktop - Windows Hypervisor is not present.

在这里插入图片描述
解决办法:
参考docker官方文档:https://docs.docker.com/desktop/troubleshoot/topics/#virtualization
在这里插入图片描述
重启后再启动 Docker Desktop又遇到下面这个问题:
Docker Desktop - Unexpected WSL error
在这里插入图片描述
解决办法:
参考博客:https://blog.csdn.net/Sisto/article/details/118079511
在这里插入图片描述

我在执行完wsl之后又遇到下面的错误:
无法启动虚拟网络 - 请通过运行: wsl.exe --install --no-distribution 安装可选组件虚拟机平台
Error code: Wsl/Service/CreateInstance/CreateVm/WSL_E_VIRTUAL_MACHINE_PLATFORM_REQUIRED

在这里插入图片描述
解决办法:
询问ChatGPT得到答案:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
重启电脑后,Docker Desktop能正常启动了。

但是
解决完Docker Desktop启动的问题之后,也带来了另一个问题,我的虚拟机VitrualBox启动报错了
virtualBox 不能为虚拟电脑打开一个新任务Failed to get device handle and/or partition ID

在这里插入图片描述

C:\Users\Administrator>vagrant up

Bringing machine ‘default’ up with ‘virtualbox’ provider…

==> default: Checking if box ‘centos/7’ version ‘2004.01’ is up to date…

==> default: Clearing any previously set forwarded ports…

==> default: Clearing any previously set network interfaces…

==> default: Preparing network interfaces based on configuration…

default: Adapter 1: nat

==> default: Forwarding ports…

default: 22 (guest) => 2222 (host) (adapter 1)

==> default: Booting VM…

There was an error while executing VBoxManage, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.

Command: [“startvm”, “3ee0ca4d-8f34-4107-9dbb-10c2f329704c”, “–type”, “headless”]

Stderr: VBoxManage.exe: error: Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).

VBoxManage.exe: error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED)

VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

原因:
1, 开启了hyper-v
2, 使用wsl时开启虚拟机
解决办法
1、关闭hyper-v,用命令或见下图操作。 (命令:以管理员启动 powershell,执行:bcdedit /set hypervisorlaunchtype off)
2、关闭wsl虚拟机(重点)。
以管理员启动 powershell,执行:
Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
重新启动电脑之后再次打开虚拟机, 可以成功启动

原文链接:https://blog.csdn.net/weixin_43431218/article/details/126582968

所以:Docker Desktop 和 VirtualBox 有冲突,只能启动其中一个软件。

  • 7
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值