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`?)

江枫思渺然 提交于 2019-12-07 01:15:31
VonC

The official upgrade process is:

boot2docker stop
boot2docker download
boot2docker up

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 might not have the expected result (in that it would reset everything, including removing boot2docker-vm).
So don't do that.

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


Regarding the "dial tcp: GetAddrInfoW: No such host is known.", see issue 686.

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

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

The issue also includes:

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 in the comments:

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

After trying to uninstall re-install docker 1.6 same error append. I have add -v in the start.sh on all boot2docker commands and i have view that:

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

On the list of network adaptator, i can see only

VirtualBox Host-Only Network

No "VirtualBox Host-Only Ethernet Adapter #2" listed. The issue is described here: https://github.com/boot2docker/boot2docker-cli/issues/48

after check Virtual Bridged Network driver,

i have relaunched start.sh and it's work !

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!