• Register
Welcome to Kodlogs, programming questions and answer website.
+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)  

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 :


by (36.1k points)