【问题标题】:Can not start Docker 1.9.1无法启动 Docker 1.9.1
【发布时间】:2016-01-07 04:51:12
【问题描述】:

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

安装后,我运行 'Docker Quickstart 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...

我尝试删除虚拟机并重新创建它,但问题仍然存在

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...

你有这方面的经验吗? 非常感谢您的帮助!!!

【问题讨论】:

    标签: docker virtual-machine


    【解决方案1】:

    在睡眠/唤醒周期后,Windows 将 Host-Only 网络检测为“重复”并更改其 IP。之后,docker-machine(或 Quickstart 终端)就不再工作了。

    这可能是由这个 VirtualBox bug 引起的(从 5 年前开始):所以 VirtualBox 似乎没有很快修复。这可能是一个 Windows 错误。

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

    1. 打开 VirtualBox
    2. 转到文件 -> 首选项 -> 网络 -> 仅限主机的网络
    3. Docker Toolbox 可能创建了第二个 Host-only 网络,可能命名为“VirtualBox Host-Only Ethernet Adapter #2”,双击它
    4. 将“IPv4 地址”从 192.168.99.1 更改为 192.168.99.2(您可能每次都需要增加/减少 IP)。但重要的是 IP 实际发生变化。
    5. 点击确定。如果 IP 已更改(应该已更改),系统会提示您“Windows 管理员确定”(或名称如何)。

    之后,docker-machine 和 Quickstart Terminal 应该可以工作了。

    【讨论】:

    • 解决VM docker问题的唯一真正答案!谢谢! :-D
    【解决方案2】:

    有时我们在系统中禁用了虚拟化,请确保 虚拟化是否启用?

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

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

    如果它被禁用,请转到 bios 设置并启用它。

    【讨论】:

      猜你喜欢
      • 2015-01-24
      • 1970-01-01
      • 1970-01-01
      • 2020-10-04
      • 2018-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多