Skip to content

Instantly share code, notes, and snippets.

@IvanTorresEdge
Created February 15, 2017 14:14
Show Gist options
  • Save IvanTorresEdge/d1fb2fad1311977ae68a77478c1b3fe8 to your computer and use it in GitHub Desktop.
Save IvanTorresEdge/d1fb2fad1311977ae68a77478c1b3fe8 to your computer and use it in GitHub Desktop.
Setup Docker on Mac OSX (Homebrew)
# Install Virtualbox from Homebrew (or download and install manually https://www.virtualbox.org/wiki/Downloads)
brew cask install virtualbox
# Install Docker
brew install docker docker-machine docker-compose
# Create your VM
docker-machine create -d virtualbox default --virtualbox-cpu-count "2" --virtualbox-cpu-memory "4096"
docker-machine start
# Set environment variables for your terminal
eval $(docker-machine env default)
# Run your containers
docker-compose build
docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment