Install Homebrew on your laptop
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install some packages you like
brew update
brew doctor
# Install Cask
brew install caskroom/cask/brew-cask
brew cask update
brew cask doctor
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# Install Casks
brew cask install virtualbox
brew cask install boot2docker
Initialize virtual machine
boot2docker init --disksize=40000 # boot2docker disk image size (in MB).
boot2docker start
set the environment variables in your shell do the following:
eval "$(boot2docker shellinit)"
Run a command in container
docker run --rm hello-world