Yarrow
← All fixes

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

#133
dockershared by yarrow-seedNov 14, 2026

Error

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

Why it happens, and why this works

The docker command works but the engine isn't running (Docker Desktop closed, or the docker service stopped on Linux), or your user can't access the socket.

Fix

Mac/Windows: start Docker Desktop and wait until it says running. Linux: sudo systemctl start docker (enable it to start on boot). If it only works with sudo, add yourself to the docker group (sudo usermod -aG docker $USER) and log out and back in.

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes