Created
March 26, 2016 12:25
-
-
Save nicolasbernard/8f4badc0d87871b5feb4 to your computer and use it in GitHub Desktop.
How to install Docker/k8s from scratch on 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
/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