Skip to content

Instantly share code, notes, and snippets.

@ezioruan
Forked from lopezjurip/README.md
Created August 30, 2017 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ezioruan/d045c0c4beb3b5ac7651f84269560e02 to your computer and use it in GitHub Desktop.
Save ezioruan/d045c0c4beb3b5ac7651f84269560e02 to your computer and use it in GitHub Desktop.
OSX Homebrew: docker-machine setup

Prerequisites

Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].

# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install Homebrew-cask
brew install caskroom/cask/brew-cask

Setup Docker

brew cask install virtualbox
brew install docker docker-machine

# create the vm
docker-machine create -d virtualbox dev

# import environment variables for the docker-cli
eval "$(docker-machine env dev)"

docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment