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:
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.
联系客服