Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boot2Docker (1.3.0) stop starting. Now getting: "Error requesting socket: exit status 255"

Tags:

boot2docker

When I run:

$ boot2docker start

I get:

Waiting for VM and Docker daemon to start...
.................
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.

I have delete the iso and redownloaded it, and reran init. I have even reinstalled it. If I run it with the -v flag I get a bunch of these:

executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/cholmok/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255
like image 459
Chris Holmok Avatar asked Oct 29 '14 22:10

Chris Holmok


2 Answers

I figured out what the problem was: I had a corrupted hosts file.

like image 154
Chris Holmok Avatar answered Nov 08 '22 11:11

Chris Holmok


I had the same error, after I upgraded to 1.2.

For me the problem was already exported DOCKER_HOST env variable.

Try to unset it and run boot2docker up again.

like image 43
sparrovv Avatar answered Nov 08 '22 12:11

sparrovv