Last active
August 29, 2015 14:05
-
-
Save smj10j/fce435a8c13a5dadd7bd to your computer and use it in GitHub Desktop.
One-stop Docker Install for OSX
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
set -e | |
echo "Get homebrew in order..." | |
if [[ -z $(which brew) ]]; then | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
else | |
brew update | |
brew upgrade | |
fi | |
echo "Install cask for homebrew..." | |
brew install caskroom/cask/brew-cask | |
echo "Install Virtualbox..." | |
brew cask install virtualbox | |
echo "Install Docker..." | |
brew install docker | |
echo "Install Boot2Docker..." | |
brew install boot2docker | |
echo "Initialize and launch a Boot2Docker VM..." | |
boot2docker init | |
boot2docker up | |
echo "yay docker!" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment