OS X 无法重新安装 boot2docker:请求套接字时出错:退出状态 255

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

我在 OS X 计算机上重新安装了 boot2docker。 运行 boot2docker up,我收到一条错误消息:

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.

运行冗长(boot2docker -v up),我可以看到所有的尝试:

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

我已经在我的 /etc/hosts:

127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost 

这个错误是什么意思,我该如何解决?

我在 GH 上发现了一个问题页面,其中包含相同的错误消息——他们说他们有一个杂散的 VirtualBox bootdocker vm...您可以在此处查看文章:

Link to GitHub issue

他们基本上删除了 Virtualbox VM 并重新启动。 希望这对你有用。