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:
- In Virtualbox, go to VirtualBox (menu) => Preferences => Network => Host Only Networks, delete the host only networks, then I re-added them
Now Docker works from the OS X command line via iTerm2 for me.