Programmers learn & share
+1 vote
20 views

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 docker-containerd.pid
service docker start

finally "docker run...." 

To download your image and start the container as usual.

Further Readings :

https://docs.docker.com/config/daemon/

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