Skip to content

Instantly share code, notes, and snippets.

@agiza
Forked from pearofducks/docker-machine-vmfusion.sh
Created January 3, 2019 18:20
Show Gist options
  • Select an option

  • Save agiza/1d4e858e9c2bb9e20b1da3abea4df58c to your computer and use it in GitHub Desktop.

Select an option

Save agiza/1d4e858e9c2bb9e20b1da3abea4df58c 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 osxdock
# Bring the machine up
docker-machine start osxdock
# Configure Shell
eval $(docker-machine env osxdock)
# Get VMs IP
docker-machine ip osxdock
# SSH to VM
docker-machine ssh osxdock
# Bring machine down
docker-machine stop osxdock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment