Getting Docker to Work with Mac OS X Yosemite

Docker Logo

Docker Logo

I use Docker for some personal and work related projects. Docker has always worked great for me until I upgraded my Mac operating system from Mavericks to Yosemite. Once I upgraded to Yosemite, despite having Docker configured to work properly, the Docker command line couldn’t connect to the boot2docker vm that is required in order to run Docker on OS X. I could use `boot2docker ssh` and then do my Docker tasks, but that didn’t work for me as I am also trying to use `knife container` to manage Docker containers via Chef.

To fix this issue, here is what I did:

  • boot2docker delete
  • In Virtualbox, go to VirtualBox (menu) => Preferences => Network => Host Only Networks, delete the host only networks, then I re-added them
  • boot2docker init
  • boot2docker up

Now Docker works from the OS X command line via iTerm2 for me.

Comments are closed.

Post Navigation

%d bloggers like this: