Search code examples
osx-yosemiteboot2docker

OS X cannot reinstall boot2docker : Error requesting socket: exit status 255


I reinstalled boot2docker on my OS X computer. Running boot2docker up, I get an error message:

boot2docker up
Waiting for VM and Docker daemon to start...   
..............................................         
ooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
Trying to get Docker socket one more time
Error requesting socket: exit status 255
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose.

Running verbose (boot2docker -v up), I can see all the tries:

executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o   
StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o  
LogLevel=quiet -p 2022 -i /Users/baboo/.ssh/id_boot2docker
docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255

I already have in my /etc/hosts:

127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost 

What's the meaning of this error and how can I solve it?


Solution

  • I found an issues page on GH with the same error message -- they said that they had a stray VirtualBox bootdocker vm... you can see the article here:

    Link to GitHub issue

    They basically deleted the Virtualbox VM and re-inited. Hopefully that works for you.