Skip to content

Instantly share code, notes, and snippets.

@smj10j
Last active August 29, 2015 14:05
Show Gist options
  • Save smj10j/fce435a8c13a5dadd7bd to your computer and use it in GitHub Desktop.
Save smj10j/fce435a8c13a5dadd7bd to your computer and use it in GitHub Desktop.
One-stop Docker Install for OSX
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