无法启动Docker 1.9.1

我是docker工人的新手。 今天早上我刚下载并安装docker 1.9.1到我的电脑(操作系统:windows)

安装后,我运行“Docker快速入门terminal”,但它失败控制台保持这样打印:

Machine default already exists in VirtualBox. Starting machine default... (default) Starting VM... Machine "default" was started. Started machines may have new IP addresses. You may need to re-run the `docker-m achine env` command. Regenerate TLS machine certs? Warning: this is irreversible. (y/n): Regeneratin g TLS certificates Detecting the provisioner... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Setting environment variables for machine default... Looks like something went wrong... Press any key to continue... 

我试图删除虚拟机,并再次创build它,但问题仍然存在

 Creating Machine default... Running pre-create checks... Creating machine... (default) Copying C:\Users\mcthanh\.docker\machine\cache\boot2docker.iso to C:\U sers\mcthanh\.docker\machine\machines\default\boot2docker.iso... (default) Creating VirtualBox VM... (default) Creating SSH key... (default) Starting VM... Waiting for machine to be running, this may take a few minutes... Machine is running, waiting for SSH to be available... Detecting operating system of created instance... Detecting the provisioner... Provisioning with boot2docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Checking connection to Docker... Docker is up and running! To see how to connect Docker to this machine, run: C:\Program Files\Docker Toolb ox\docker-machine.exe env default Setting environment variables for machine default... Looks like something went wrong... Press any key to continue... 

你有什么经验吗? 非常感谢您的帮助!!!

在hibernate/唤醒周期之后,Windows将主机专用networking检测为“重复”并更改其IP。 之后,docker机(或快速启动terminal)不再工作。

这可能是由于这个VirtualBox 错误 (从5年前)造成的:所以似乎没有很快从VirtualBox解决。 这可能是一个Windows错误。

这应该是一个有效的解决方法:

  1. 打开VirtualBox
  2. 转到文件 – >首选项 – >networking – >主机专用networking
  3. Docker工具箱可能创build了第二个主机专用networking,可能名为“VirtualBox主机专用以太网适配器#2”,双击
  4. 将“IPv4地址”从192.168.99.1更改为192.168.99.2(您可能需要每次增加/减lessIP)。 但是IP实际上发生了变化是很重要的。
  5. 点击确定。 如果IP更改(应该已更改),系统会提示您input“Windows Administrator OK”(或者命名为“Windows Administrator”)。

之后,docker机和快速启动terminal应该工作。

有时我们的系统中禁用虚拟化,确保虚拟化已启用或未启用?

按照给定的步骤检查是否启用了虚拟化

 Open Task manager Click on performance Click on CPU Check whether virtualization is enabled or not 

如果它被禁用,然后进入BIOS设置并启用它。