docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory. MacOS

Viewed 2698

It happens when I try "docker run -d -p 80:80 docker/getting-started". I thought it because I don't have enough memory, but after I freed some space problem didn't solve. I'm running out of ideas

2 Answers

For me it worked with

docker run -d -p 80:80 docker/getting-started

and

run docker ps

Command results:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 83c7a6026d05 docker/getting-started "/docker-entrypoint.…" 11 seconds ago Up 9 seconds 0.0.0.0:80->80/tcp festive_beaver

I had a similar problem, and realized I'd had docker installed from brew at some point in the past. I used

brew uninstall docker

Then killed all docker processes and did a Clean / Purge data, and restarted Docker Desktop. After that it took a minute or two to rebuild everything, but it worked for me.

Related