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)