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

dockerlinuxUbuntu

Hi I installed docker on my ubuntu 14.xx

and whenever I run docker commands, it throws the same error

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

docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run –help'.

How can I solve this problem? Thank you so much in advance

Best Answer

you can try sudo systemctl start docker or sudo service docker start in order to start the docker daemon, if it's already running type sudo systemctl status docker or sudo service docker status to see if there are some errors.

Regards.

Related Question