Created
February 15, 2017 14:14
-
-
Save IvanTorresEdge/d1fb2fad1311977ae68a77478c1b3fe8 to your computer and use it in GitHub Desktop.
Setup Docker on Mac OSX (Homebrew)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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