简体   繁体   中英

macOS - docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

After successfully installing docker using home brew here with the command brew install docker

Per this instruction - https://www.cprime.com/resources/blog/docker-for-mac-with-homebrew-a-step-by-step-tutorial/

The location is here - /usr/local/bin/docker

With version - Docker version 20.10.17, build 100c70180f

I am unable to start it to run a container, when I try the hello-world example I am getting the error - docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

I also cannot find the application using spotlight or in the applications folder.

Installing Docker using home brew was not enough, I needed to install the docker desktop application too and run the container from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM