Programmers learn & share
+1 vote

Problem :

Encountered bellow docker error
cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?
by (6.9k points)   | 20 views

1 Answer

0 votes

Solution :

This error usually comes up if you do not stop docker properly.

To resolve the error please follow bellow instructions.

service docker stop
cd /var/run/docker/libcontainerd
rm -rf containerd/*
rm -f
service docker start

finally "docker run...." 

To download your image and start the container as usual.

Further Readings :

by (36.1k points)  
2,183 questions
2,486 answers
241 users