Docker – Cannot connect to the Docker daemon. Is ‘docker -d’ running on this host


I am trying to run my Docker commands, but I am facing the notification error in the title. I tried running:

ps auxww | grep docker

but still getting the error. Any solution?

Best Solution

If you can verify that the docker daemon is running then it may be that your user is not allowed to access docker.

To do this add yourself to the docker group.

sudo usermod -aG docker <userid>

Remember to do a re-login or otherwise apply/activate the new group permission.

newgrp docker