打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
OSX boot2docker hangs on “Waiting for VM and Docker daemon to start …”

I've installed boot2docker on OSX 10.8.5 and it seems that the installation went fine, but when I try to launch boot2docker I get the following, which hangs indefinitely:

$ /usr/local/bin/boot2docker up Waiting for VM and Docker daemon to start.............................................................................oooooooooooooooooooooooooooooo

What steps should I take to debug this? I haven't been able to find any information on this particular issue.

$ boot2docker versionBoot2Docker-cli version: v1.4.1Git commit: 43241cb$ docker versionClient version: 1.4.1Client API version: 1.16Go version (client): go1.3.3Git commit (client): 5bc2ff8OS/Arch (client): darwin/amd64$ boot2docker -v upBoot2Docker-cli version: v1.4.1Git commit: 43241cb2014/12/23 00:19:25 executing: VBoxManage showvminfo boot2docker-vm --machinereadable2014/12/23 00:19:25 executing: VBoxManage showvminfo boot2docker-vm --machinereadable2014/12/23 00:19:25 executing: VBoxManage showvminfo boot2docker-vm --machinereadableWaiting for VM and Docker daemon to start....Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).^C

In my ~/.bash_profile file:

export DOCKER_HOST=tcp://192.168.59.103:2376export DOCKER_CERT_PATH=/Users/Me/.boot2docker/certs/boot2docker-vmexport DOCKER_TLS_VERIFY=1

When I open VirtualBox, this what I see:


I've tried powering off and removing the boot2docker-vm using the Virtual Box GUI, and I get the following when I run boot2docker again:
$ /usr/local/bin/boot2docker init error in run: Failed to initialize machine "boot2docker-vm": exit status 2

And then:

$ /usr/local/bin/boot2docker up Waiting for VM and Docker daemon to start..................................................................…..

Which hangs endlessly.


Additionally

$ docker psFATA[0000] Couldn't read ca cert /Users/Me/.boot2docker/certs/boot2docker-vm/ca.pem: open /Users/Me/.boot2docker/certs/boot2docker-vm/ca.pem: no such file or directory

And:

$ sudo docker psFATA[0000] Get http:///var/run/docker.sock/v1.16/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

Following Sven's advice below deleted the boot2docker-vm again and run init in verbose mode:

    $ boot2docker -v initBoot2Docker-cli version: v1.4.1Git commit: 43241cb2014/12/23 01:53:02 executing: VBoxManage showvminfo boot2docker-vm --machinereadable2014/12/23 01:53:02 executing: VBoxManage showvminfo boot2docker-vm --machinereadable2014/12/23 01:53:03 executing: VBoxManage list vms2014/12/23 01:53:03 executing: VBoxManage createvm --name boot2docker-vm --registerVirtual machine 'boot2docker-vm' is created and registered.UUID: eca00a0a-6d68-45f3-acd1-ccc4dd1bcec9Settings file: '/Users/Me/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox'2014/12/23 01:53:03 executing: VBoxManage showvminfo boot2docker-vm --machinereadable2014/12/23 01:53:03 executing: VBoxManage setextradata boot2docker-vm VBoxInternal/CPUM/EnableHVP 12014/12/23 01:53:03 executing: VBoxManage modifyvm boot2docker-vm --firmware bios --bioslogofadein off --bioslogofadeout off --bioslogodisplaytime 0 --biosbootmenu disabled --natdnshostresolver1 off --natdnsproxy1 off --ostype Linux26_64 --cpus 8 --memory 2048 --vram 8 --acpi on --ioapic on --rtcuseutc on --cpuhotplug off --pae on --longmode on --synthcpu off --hpet on --hwvirtex on --triplefaultreset off --nestedpaging on --largepages on --vtxvpid on --vtxux off --accelerate3d off --uart1 0x3F8 4 --uartmode1 server /Users/AJB/.boot2docker/boot2docker-vm.sock --boot1 dvd2014/12/23 01:53:03 executing: VBoxManage showvminfo boot2docker-vm --machinereadable2014/12/23 01:53:03 executing: VBoxManage modifyvm boot2docker-vm --nic1 nat --nictype1 virtio --cableconnected1 on2014/12/23 01:53:03 executing: VBoxManage controlvm boot2docker-vm natpf1 ssh,tcp,127.0.0.1,2022,,222014/12/23 01:53:03 executing: VBoxManage list hostonlyifs2014/12/23 01:53:03 executing: VBoxManage list dhcpservers2014/12/23 01:53:03 executing: VBoxManage hostonlyif create0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%2014/12/23 01:53:03 executing: VBoxManage hostonlyif ipconfig dyld: DYLD_ environment variables being ignored because main executable (/Applications/VirtualBox.app/Contents/MacOS/VBoxNetAdp --ip 192.168.59.3 --netmask 255.255.255.0VBoxManage: error: The host network interface with the given name could not be foundVBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component Host, interface IHost, callee nsISupportsVBoxManage: error: Context: "FindHostNetworkInterfaceByName(name.raw(), hif.asOutParam())" at line 218 of file VBoxManageHostonly.cppVBoxManage: error: Could not find interface 'dyld: DYLD_ environment variables being ignored because main executable (/Applications/VirtualBox.app/Contents/MacOS/VBoxNetAdp'error in run: Failed to initialize machine "boot2docker-vm": exit status 2

Thanks in advance for any help.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
VirtualBox: Port Forwarding for NAT network ? Linux by Examples
dmg镜像 os vm 安装mac
Getting Started
理解Docker技术
Docker: 限制容器可用的内存
docker学习14-配置 docker 阿里云/腾讯云加速器
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服