简体   繁体   English

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

[英]Docker Quickstart Terminal fails to start VirtualBox VM in Windows 10

I've tried several times to start the Docker VM via the Docker Quickstart Terminal.我已经多次尝试通过 Docker 快速入门终端启动 Docker VM。 After deleting the default virtual machine in VirtualBox I receive the following output在 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...

To troubleshoot further, I attempted to start the default machine in the VirtualBox GUI directly using Start > Headless Start, as suggested in other Docker issues.为了进一步排除故障,我尝试使用 Start > Headless Start 在 VirtualBox GUI 中直接启动default机器,如其他 Docker 问题中所建议的那样。 The startup failed and I received an error dialog box with the content:启动失败,我收到一个错误对话框,内容如下:

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}

Versions of related components:相关组件的版本:

  • VirtualBox Version 5.0.11 r104393 VirtualBox 版本 5.0.11 r104393
  • Docker Toolbox 1.9.1a Docker 工具箱 1.9.1a
  • Windows 10 Version 1511 (OS Build 10586.14) Windows 10 版本 1511(操作系统内部版本 10586.14)

One of the answers to this question solved my problem. 这个问题的答案之一解决了我的问题。 Here it is with a few edits:这里有一些编辑:

I found a solution我找到了解决方案

  1. Open Windows Network Connections打开 Windows 网络连接
  2. Right click on VirtualBox Host only adapter that was created右键单击创建的 VirtualBox Host only 适配器
  3. Choose properties选择属性
  4. Check "VirtualBox NDIS6 Bridged Networking driver"选中“VirtualBox NDIS6 桥接网络驱动程序”
  5. Disable and Enable the highlighted item禁用和启用突出显示的项目

适配器属性

For me "VirtualBox NDIS6 Bridged Networking Driver" was not checked.对我来说,没有选中“VirtualBox NDIS6 Bridged Networking Driver”。 I checked it and clicked OK to close the Properties window.我检查了它并单击“确定”关闭“属性”窗口。 After that, the Docker Quickstart Terminal was able to start the VM successfully.之后,Docker Quickstart Terminal 能够成功启动 VM。

The same thing happened to me.这样的事情我也经历过。 At this moment I am using Windows Home.目前我正在使用 Windows Home。

At least in my case, what happened was that the environment variables DOCKER_MACHINE and DOCKER_TOOLBOX_INSTALL_PATH were not created for the system.至少在我的情况下,发生的情况是没有为系统创建环境变量DOCKER_MACHINEDOCKER_TOOLBOX_INSTALL_PATH

I just had to add them and it worked.我只需要添加它们就可以了。

图片

I tried to follow @chris-hunt answer, but I didn't found the highlighted item.我试图遵循@chris-hunt 的回答,但没有找到突出显示的项目。 I realized it was due to the fact I didn't installed the VirtualBOX that comes in the Docket Tools installation.我意识到这是因为我没有安装 Docket Tools 安装中的 VirtualBOX。 I think I was using an older version.我想我使用的是旧版本。 So I uninstalled docker tools AND VitualBOX, both on windows Control Panel.所以我在 Windows 控制面板上卸载了 docker 工具和 VitualBOX。 After that, I reinstalled Docker Tools with the VirtualBOX checked, and it finally worked.之后,我在检查了 VirtualBOX 的情况下重新安装了 Docker Tools,终于成功了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows PC启动时如何自动启动容器?(Docker快速启动终端,DockerToolbox-19.03.1.exe) - how to Automatically start a container when Windows PC start?(Docker Quickstart Terminal, DockerToolbox-19.03.1.exe) 无法在Mac OS X主机上的Windows 10 VirtualBox VM中运行基于docker的Windows容器 - Cannot run docker based Windows container in Windows 10 VirtualBox VM on Mac OS X host 无法 map 将带有空格的主机目录连接到容器目录(绑定挂载) - Docker 快速入门终端(Bash),windows 10 - Cannot map a host directory with spaces to a container directory (bind mounts) - Docker Quickstart Terminal (Bash), windows 10 Docker快速入门终端无法打开 - Docker quickstart terminal not opening 由于网桥适配器问题,VirtualBox VM无法启动 - VirtualBox VM fails to start because of bridge adapter issue Angular2 QuickStart npm start在Windows 10上无法正常工作 - Angular2 QuickStart npm start is not working correctly on Windows 10 Windows 10上的Docker VM磁盘大小 - Docker VM disk size on Windows 10 Docker 不在 Windows 10 上启动 - Docker does not start on Windows 10 启动 Azure VM 并自动登录到 Windows 10 - Start Azure VM and login to Windows 10 automatically Windows 10上的Docker终端:剪贴板可以工作吗? - Docker terminal on windows 10: does clipboard work?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM