Skip to content

Instantly share code, notes, and snippets.

@stevepereira
Last active November 13, 2015 20:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevepereira/259cae8867f4a2620bd0 to your computer and use it in GitHub Desktop.
Save stevepereira/259cae8867f4a2620bd0 to your computer and use it in GitHub Desktop.
Basic workflow for docker-machine on Mac with VMWare Fusion
# Get everything ready on a Mac
brew install docker docker-machine docker-compose
# Create a new machine (based on the 1.8.1 boot2docker iso)
docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso dev
# Bring the machine up
docker-machine start dev
# Configure Shell
eval $(docker-machine env dev)
# Get VMs IP
docker-machine ip dev
# SSH to VM
docker-machine ssh dev
# Bring machine down
docker-machine stop dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment