Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 345
Bhim singh dangi Avatar asked Aug 20 '14 12:08

Bhim singh dangi


People also ask

How do I know if daemon is running Docker?

Check the status using systemctl If there is active (running) in green then the Docker daemon and containers should be running.


1 Answers

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
like image 65
straville Avatar answered Nov 09 '22 04:11

straville