将 Boot2Docker 1.5 升级到 1.6 后,错误 append:Failed 获取机器 "boot2docker-vm":机器不存在(你 运行 `boot2docker init` 了吗?)

After upgrade Boot2Docker 1.5 to 1.6 error append:Failed to get machine "boot2docker-vm": machine does not exist (Did you run `boot2docker init`?)

升级到docker1.6后

错误 运行:无法获取机器 "boot2docker-vm":机器不存在(你 运行 boot2docker init 了吗?)

boot2docker 无法 运行 且无需执行恢复操作。

boot2docker.exe ssh
error in run: Failed to get machine "boot2docker-vm": machine does not exist (Did you run `boot2docker init`?)

boot2docker.exe init
error in run: Failed to get latest release: Get https://api.github.com/repos/boot2docker/boot2docker/releases: dial tcp: GetAddrInfoW: No such host is known.

official upgrade process是:

boot2docker stop
boot2docker download
boot2docker up

我在一个简单的 cmd.exe 会话中完成了它,它运行得很好,即使在代理之后也是如此。

C:\Users\VonC\prog\b2d>bd download
Latest release for boot2docker/boot2docker is v1.6.0
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.6.0/boot2docker.iso
        to Z:\.boot2docker\boot2docker.iso

Boot2Docker version 1.6.0, build master : a270c71 - Thu Apr 16 19:50:36 UTC 2015
Docker version 1.6.0, build 4749651     

boot2docker upgrade 可能没有预期的结果(因为它会重置所有内容,包括删除 boot2docker-vm)。
所以不要那样做。

如果你这样做了,你必须再做一次 start.sh 这将(再次)初始化并启动新的 boot2docker VM 实例。


关于“dial tcp: GetAddrInfoW: No such host is known.”,参见issue 686

您至少可以使用 boot2docker init -v 调试初始化步骤。

I have rebooted my system, then I can create my docker container now

问题还包括:

You seem to be using the built in Windows cmd.exe shell - which is not supported.
You need to use the Boot2Docker shell.


Dieter Menne mentions :

"cmd not supported": In theory you are right, but because of a bug parsing the -v line, currently you MUST use cmd or Powershell for 1.6 when you have shared folders.
See issue 12590

For others: Do no forget to run "boot2docker shellinit" in cmd.

尝试卸载后重新安装 docker 1.6 追加同样的错误。 我在所有 boot2docker 命令的 start.sh 中添加了 -v 并且我认为:

VBoxManage.exe: error: Nonexistent host networking interface, name 'VirtualBox Host-Only Ethernet Adapter #2' (VERR_INTERNAL_ERROR)

在网卡列表中,我只能看到

VirtualBox Host-Only Network

没有列出“VirtualBox Host-Only Ethernet Adapter #2”。 此处描述了该问题: https://github.com/boot2docker/boot2docker-cli/issues/48

检查虚拟桥接网络驱动程序后,

我已经重新启动 start.sh 并且 它的工作!