Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sashadev-sky/db2f494ec63bd59d078f7229ed5e1f00 to your computer and use it in GitHub Desktop.
Save sashadev-sky/db2f494ec63bd59d078f7229ed5e1f00 to your computer and use it in GitHub Desktop.
brew cask install virtualbox
brew install docker docker-machine
# create the vm
docker-machine create -d virtualbox dev
# If seeing:
# (dev) No default Boot2Docker ISO found locally, downloading the latest release...
# Error with pre-create check: "failure getting a version tag from the Github API response (are you getting rate limited by Github?)"
# then:
curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v1.9.1/boot2docker.iso
docker-machine create --driver virtualbox default
# import environment variables for the docker-cli
eval "$(docker-machine env dev)"
docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment