Skip to content

Instantly share code, notes, and snippets.

@nicolasbernard
Created March 26, 2016 12:25
Show Gist options
  • Save nicolasbernard/8f4badc0d87871b5feb4 to your computer and use it in GitHub Desktop.
Save nicolasbernard/8f4badc0d87871b5feb4 to your computer and use it in GitHub Desktop.
How to install Docker/k8s from scratch on OSX
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install HomeBrew
brew tap caskroom/cask # install Cask
brew cask install virtualbox # install VirtualBox
brew install docker docker-machine # install Docker and Docker-machine
docker-machine create --driver virtualbox default # create a Docker VM named "default"
eval $(docker-machine env default) # set env var to tell Docker client to talk to our VM
docker version # Docker works, yay!
brew tap redspread/spread # tell HomeBrew where Spread is
brew install kubectl spread # install Kubectl and Spread
spread cluster start # ask Spread to start a k8s cluster with Docker client settings
kubectl cluster-info # Kubernetes cluster works, yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment