Cannot connect to the Docker daemon after 'brew install'

I normally prefer to manage my apps on my OSX with brew

I am able to install docker, docker-compose and docker-machine

docker --version
Docker version 17.05.0-ce, build 89658be
docker-compose --version
docker-compose version 1.13.0, build unknown
docker-machine --version
docker-machine version 0.11.0, build 5b27455

However when I try to run

> docker run -d -p 80:80 --name webserver nginx
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

How can get a docker service to run?

1 Like

I have sam issue after installing docker desktop on MacOS with brew Install. I will be happy to know the solution as well

Even if you install Docker Desktop with brew, you need to start it using the GUI. It won’t start as a ā€œserviceā€. Brew just downloads the installer and runs that.