Skip to content

Instantly share code, notes, and snippets.

@Iristyle
Created December 26, 2016 20:26
Show Gist options
  • Save Iristyle/3b2a9cdcf332f199bb0752b4d7d0b847 to your computer and use it in GitHub Desktop.
Save Iristyle/3b2a9cdcf332f199bb0752b4d7d0b847 to your computer and use it in GitHub Desktop.
Docker broken on OSX

Flush old brew formulae:

Given an old docker install, flush it from the system:

brew uninstall --force docker
brew uninstall --force docker-machine
brew unlink docker

Install updated Docker cask

brew cask install docker
brew link docker

Verify cmd line has right version

docker --version


Docker version 1.12.5, build 7392c3b

See if default is created

docker-machine ls

With no default, create it for the appropriate driver

# For VirtualBox
docker-machine create -d virtualbox default

# For VMWare Fusion
docker-machine create --driver vmwarefusion default

On OSX set appropriate env vars for cmd line tools

eval $(docker-machine env default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment