本文介绍了将Boot2Docker 1.5升级到1.6后错误附录:无法获取机器"boot2docker-vm":机器不存在(您是否运行`boot2docker init`?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到docker 1.6之后

After upgrade to docker 1.6

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

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

boot2docker无法运行,并且无法恢复.

boot2docker fail to run and nothing to do to restore.

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.

推荐答案

官方升级过程是:

boot2docker stop
boot2docker download
boot2docker up

我已经在一个简单的cmd.exe会话中完成了该操作,即使在代理之后,它也可以正常工作.

I have done it in a simple cmd.exe session, and it worked perfectly, even behind proxy.

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).
所以不要那样.


boot2docker upgrade might not have the expected result (in that it would reset everything, including removing boot2docker-vm).
So don't do that.

如果这样做,则必须再次执行 ,它将再次初始化并启动新的boot2docker VM实例.

If you did that, you have to do again a start.sh which will init (again) and start and new boot2docker VM instance.

关于"dial tcp: GetAddrInfoW: No such host is known.",请参见问题686 .

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

You can at least debug the init step with boot2docker init -v.

问题还包括:


Dieter Menne 提到:


Dieter Menne mentions in the comments:

对于其他人:不要忘记在cmd中运行"boot2docker shellinit".

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

这篇关于将Boot2Docker 1.5升级到1.6后错误附录:无法获取机器"boot2docker-vm":机器不存在(您是否运行`boot2docker init`?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 20:53