boot2docker Fix Startup Failure

Post by Saul Shanabrook

When you starte boot2docker are getting this?

2014/02/05 16:19:18 dial unix /var/run/docker.sock: no such file or directory  

And then, when you try to run boot2docker up|start|stop|reset are you getting this?

error in run: Failed to initialize machine "boot2docker-vm": exit status 1  

Solution is simple (for me). Start up the VirtualBox GUI. My boot2docker image was marked as "saved". Start it up and then send it the shutdown signal. Then boot2docker worked again for me, starting up the machine fine. I think this happens when I don't properly shut down the machine.