将Boot2Docker 1.5升级到1.6后错误附录:无法获取机器"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`?)

查看:90
本文介绍了将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.

推荐答案

我已经在一个简单的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.

我已重新启动系统,然后可以立即创建我的Docker容器

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

问题还包括:

您似乎正在使用内置的Windows cmd.exe shell-不支持.
您需要使用Boot2Docker shell.

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 提到


Dieter Menne mentions in the comments:

不支持cmd":理论上您是对的,但是由于解析-v行的错误,当前,当您共享文件夹时,必须将cmd或Powershell用于1.6. 参见问题12590

"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

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

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆