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

Jason De Paola
Jason De Paola
  • Updated

Author: Jason De Paola

Date: April 18, 2024

Audience: Everyone

Environmental details: Self-hosted


Docker commands (e.g., docker ps) result in errors like below:

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


This usually is due to the command being run as 'root user' or the user not having permissions on /var/run/docker.sock
Try running the command as "sudo" and using the account docker was installed with.

Additional Documentation

See the Docker community guide here, which discusses this topic.



Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.