boot2docker / boot2docker-cli

boot2docker management utility
Apache License 2.0
339 stars 95 forks source link

boot2docker VM crashes when started via boot2docker CLI #368

Closed akloeber closed 9 years ago

akloeber commented 9 years ago

In my environment the boot2docker VM crashes while starting if started from terminal via boot2docker up. This is the output:

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

If I start the same VM through VirtualBox Manager everything works fine and afterwards boot2docker CLI can be used as normal.

I already did a complete re-install and made sure that no other VirtualBox instance is present. These are the logs for a crash and normal start-up: crash (CLI): https://gist.github.com/akloeber/5a5ea6a66015f2189ec2 normal start-up (VB Manager): https://gist.github.com/akloeber/b0368e67b4fd54ab104e

Environment: Boot2Docker v1.6.2, Git commit: cb2c3bc VirtualBox v4.3.28-r100309 Mac OS X 10.10.3

akloeber commented 9 years ago

This had something to do with VirtualBox as the same behavior occurred in Vagrant.

I fixed it by completely removing VirtualBox with the VirtualBox_Uninstall.tool from the VirtualBox image as well as removing other remaining artifacts of both native and Homebrew Cask installations. After restarting I reinstalled VirtualBox (normal way, no Homebrew Cask) and it works (same versions of VirtualBox, Boot2Docker, but now Mac OS X 10.10.4).