docker 工具箱快速启动失败,在 Windows 10 中出现 VBoxManage.exe 错误

docker toolbox quick start fails with VBoxManage.exe error in Windows 10

我正在尝试在 Windows 10 主页中使用 docker。

在安装过程中(在 Virtual Box 部分)出现错误:

Cannot rename this connection. A connection with the name you specified already exists. Specify a different name.

这可以关闭并继续安装。

但是,当我单击快速启动 (start.sh) 时,出现以下错误:

Starting "default"... (default) Check network to re-create if needed... Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm default --type headless failed: VBoxManage.exe: error: The virtual machine 'default' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users*****.docker\machine\machines\default\default\Logs\VBoxHardening.log VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine Looks like something went wrong in step ´Checking status on default´... Press any key to continue...

此错误已作为工具箱的 Issue,但对某些人有效的解决方案对我无效:

this answer 的帮助下,我设法克服了这个错误:

第 1 步:下载并安装https://www.virtualbox.org/attachment/ticket/14040/VBox-Win10-fix-14040.exe并将其运行留在后台

步骤 2:前往 Virtual box 程序文件(可能:C:\Program Files\Oracle\VirtualBox)。

步骤 3:转到这三个 .exe 的兼容性(Virtualbox.exe、VBoxHeadless.exe 和 VBoxManage.exe)并选择 windows7.

运行 快速启动并且有效。

我不确定这是否是解决方案的唯一原因,因为在此之前我也做过:

  • 删除.docker目录(在C:\Users\<user.name>\.docker);
  • 正在重新安装 virtualbox 和 docker 工具箱;
  • 在工具箱安装期间检查 "Install VirtualBox with NDIS5 driver"。

尝试运行使用管理员快速启动。具体来说,右键单击快捷方式并选择 'Run as administrator'。这对我有用。

卸载 Virtual Box,然后在管理员命令提示符下使用以下参数重新安装:

注意:最新的 VirtualBox 版本可能不同:

c:\downloads\VirtualBox-6.0.0-127566-Win.exe -msiparams NETWORKTYPE=NDIS5

以前的答案对我不起作用。我从 Win10 主页卸载了 Docker 工具箱。还删除了(所有文件)在 Virtualbox 中创建的 "default" 虚拟机。

在 DockerToolbox-19.03.1.exe -> 右键单击​​ -> 兼容性疑难解答。 运行 兼容性检查。 运行 管理员模式下的安装程序。

然后 运行 "Docker Quickstart Terminal" 快捷方式,一切正常。

它只是表示 "Starting "默认“...(默认)如果需要,请检查网络到 re-create...无法启动 VM:C:\Program Files\Oracle\VirtualBox\VBoxManage。 exe startvm default --type headless "

这导致

现在的解决方案是检查管理程序是否已启用,如果已启用,请将其关闭并重新启动 :

中提到的主机

virtualbox Raw-mode is unavailable courtesy of Hyper-V windows 10

标题

我不得不卸载虚拟机虚拟盒子。安装了最新版本。 运行 Docker 作为管理员的工具箱和 boom,它成功了!