Skip to content

Instantly share code, notes, and snippets.

@jeremyschlatter
Created July 13, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyschlatter/4d0321aa0dc9a7f9db40 to your computer and use it in GitHub Desktop.
Save jeremyschlatter/4d0321aa0dc9a7f9db40 to your computer and use it in GitHub Desktop.
For those times when boot2docker says 'error in run: Failed to start machine "boot2docker-vm": exit status 1'
#!/bin/bash
# Based on http://stackoverflow.com/a/27564185/3072514
VBoxManage startvm "/Users/jeremy/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox"
VBoxManage controlvm "/Users/jeremy/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox" acpipowerbutton
echo 'Press enter when the machine has powered off'
read
echo 'You should see "State": "poweroff" below'
boot2docker -v info | grep poweroff
@jeremyschlatter
Copy link
Author

Note that you'll need to change the paths to point to your .vbox image. To find the correct path, run:

$ boot2docker -v info

And copy-paste the path from the CfgFile field.

See http://stackoverflow.com/a/27564185/3072514 for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment