OSX Cannot connect to the Docker daemon. Is the docker daemon running on this host?

By | September 19, 2016

On a Mac, there are 2 ways to start docker. In a terminal, you can type

>> docker-machine start

cloudnthings:~ cloudnthings$ docker-machine start
Starting "default"...
(default) Check network to re-create if needed...
(default) Waiting for an IP...
Machine "default" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
cloudnthings:~ cloudnthings$ docker version
Client:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 23:54:00 2016
OS/Arch: darwin/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

If you come across this “Is the docker daemon running on this host?” error, try running this:

>> eval "$(docker-machine env default)"

The other way to start docker is by clicking on the Docker Quickstart Terminal icon

screen-shot-2016-09-19-at-10-10-52-am

This will get you started as well hopefully without the errors.

 

Leave a Reply

Your email address will not be published. Required fields are marked *