Skip to content

Instantly share code, notes, and snippets.

@johnallen3d
Last active August 28, 2015 19:28
Show Gist options
  • Save johnallen3d/3f6aee5d6868671b414f to your computer and use it in GitHub Desktop.
Save johnallen3d/3f6aee5d6868671b414f to your computer and use it in GitHub Desktop.
Script to migrate from boot2docker to docker-machine
# update homebrew
brew update
# install cask (if necessary)
brew install caskroom/cask/brew-cask
# or update cask
brew update cask
# create a dev machine that is a copy of the boot2docker image
docker-machine \
-D \
create \
-d virtualbox \
--virtualbox-import-boot2docker-vm boot2docker-vm \
--virtualbox-cpu-count "4" \
--virtualbox-disk-size "80000" \
--virtualbox-memory "8192" \
dev
# configure shell (locally or in bashrc/zshrc etc)
eval $(docker-machine env dev)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment