Install Docker on OSX

adamkdean

Adam K Dean

Posted on June 23, 2014

Install Docker on OSX

To install Docker on OSX, you're going to need to install a few prerequisites.

  1. Install Homebrew.
  2. Install VirtualBox.
  3. Install Vagrant.

Now we can finally install Docker. We also need to install boot2docker.

brew install docker
brew install boot2docker
boot2docker init
boot2docker up
export DOCKER_HOST=tcp://localhost:2375
Enter fullscreen mode Exit fullscreen mode

And test it:

docker version
Enter fullscreen mode Exit fullscreen mode

Bear in mind that if boot2docker has a different port than 2375, use the correct one, and don't put a trailing slash either.

💖 💪 🙅 🚩
adamkdean
Adam K Dean

Posted on June 23, 2014

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Install Docker on OSX
vagrant Install Docker on OSX

June 23, 2014