Skip to content

Instantly share code, notes, and snippets.

@jppommet
Created January 17, 2016 10:19
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 jppommet/bd3b9a6f7405dcdec038 to your computer and use it in GitHub Desktop.
Save jppommet/bd3b9a6f7405dcdec038 to your computer and use it in GitHub Desktop.
Install Docker via Homebrew
#!/bin/sh
# Install the Docker toolbox via Homebrew.
brew install cask dockertoolbox
# Create VM that Docker will run in.
# Replace "virtualbox" with another driver if desired...
docker-machine create --driver=virtualbox docker-vbox
# To remove your newly created VM:
# docker-machine rm docker-vbox
# Set environment variables.
eval "$(docker-machine env docker-vbox)"
# Test docker container hello world
docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment