Created
July 13, 2015 19:20
-
-
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'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.