Docker 快速启动终端无法在 Windows 10 中启动 VirtualBox VM

Docker Quickstart Terminal fails to start VirtualBox VM in Windows 10

我曾多次尝试通过 Docker 快速启动终端启动 Docker 虚拟机。在 VirtualBox 中删除 default 虚拟机后,我收到以下输出

Creating Machine default...
Running pre-create checks...
Creating machine...
(default) OUT | Creating VirtualBox VM...
(default) OUT | Creating SSH key...
(default) OUT | Starting VirtualBox VM...
Error creating machine: Error in driver during machine creation: exit status 1
Looks like something went wrong... Press any key to continue...

为了进一步排除故障,我尝试按照其他 Docker 问题中的建议,直接使用“开始”>“无头启动”在 VirtualBox GUI 中启动 default 机器。启动失败,我收到一个错误对话框,内容如下:

Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).

Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

Result Code:

E_FAIL (0x80004005)

Component:

ConsoleWrap

Interface:

IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

相关组件的版本:

问题的一个答案解决了我的问题。这是一些编辑:

I found a solution

  1. Open Windows Network Connections
  2. Right click on VirtualBox Host only adapter that was created
  3. Choose properties
  4. Check "VirtualBox NDIS6 Bridged Networking driver"
  5. Disable and Enable the highlighted item

对我来说,“VirtualBox NDIS6 桥接网络驱动程序”没有被选中。我检查了它并单击确定关闭属性 window。之后,Docker 快速启动终端能够成功启动虚拟机。

我试着按照@chris-hunt 的回答,但我没有找到突出显示的项目。我意识到这是因为我没有安装 Docket Tools 安装中的 VirtualBOX。我想我使用的是旧版本。 所以我在 windows 控制面板上卸载了 docker 工具和 VitualBOX。之后,我重新安装了Docker Tools,勾选了VirtualBOX,终于成功了。

同样的事情发生在我身上。目前我正在使用Windows首页

至少在我的例子中,环境变量 DOCKER_MACHINEDOCKER_TOOLBOX_INSTALL_PATH 是不是为系统创建的。

我只需要添加它们就可以了。