• Register
1 vote
182 views

Problem :

Encountered bellow docker error
cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?
6 5 3
6,930 points

Please log in or register to answer this question.

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/

9 7 4
38,600 points

Related questions

1 vote
1 answer 183 views
183 views
Problem : Facing the weird following issue cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?
asked Nov 8, 2019 peterlaw 6.9k points
1 vote
1 answer 8 views
8 views
Problem : I am trying to add one manager in Docker swarm. But it is showing me the below error. Cannot connect to the Docker daemon. Is the docker daemon running on this host? Any ideas on what I need to do to fix this? Thanks!
asked Mar 31 Shovo210 14k points
0 votes
1 answer 8 views
8 views
Problem: Is it the docker daemon running? Cannot connect to the docker daemon at unix:///var/run/docker.sock.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 74 views
74 views
Problem : After I tried to update my Docker version to 0.8.0, I face an error message while I try to enter sudo docker version as below : Client version: 0.8.0 Go version (client): go1.2 Git commit (client): cc3a8c8 2020 ... 12:55:57 initserver: open /var/lib/docker/aufs/layers/cf2414da53f9bcfaa48bc3d58360d7f1cfd3784e4fe51fbef95197709dfc285d: no such file or directory How can I resolve the issue?
asked Jan 3, 2020 alecxe 7.5k points
0 votes
0 answers 110 views
1 vote
1 answer 5 views
5 views
Problem : I'm new to Linux and MySQL, I currenty have a LAMP, running on Ubuntu 14.04, yesterday everything was fine, but today my MYSQL is not working.I get the following error message: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I have no ideia about what to do!
asked Mar 31 Shovo210 14k points
0 votes
1 answer 95 views
95 views
Problem : My problem kicked off when I was unable to log in as the root any more on the mysql install. I was trying to run mysql without the passwords turned on however when I ran my below command : # mysqld_safe --skip-grant-tables & I never got my prompt back. ... socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
asked Jan 4, 2020 alecxe 7.5k points
0 votes
1 answer 46 views
46 views
Problem : My problem started with me when I was unable to log in as root any more on the mysql install. I was trying to run mysql without passwords turned on... but whenever I ran the below command # mysqld_safe --skip-grant-tables & I would never get my prompt back ... socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
asked Dec 27, 2019 alecxe 7.5k points
0 votes
2 answers 4 views
4 views
Problem: I am stuck during learning as I have already mentioned in my question someone please cooperate me to continue my project-Thanks
asked Mar 27 ashik 12.9k points
0 votes
1 answer 670 views
670 views
Problem : I installed the docker-machine 0.1.0 and docker-compose 1.1.0 on the Mac OS 10.8.5. Docker-machine is running normally and able to connect by the docker-machine ssh. But can't connect from docker-compose getting following error: $ docker-compose up ... running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Why can't I connect? Any clues?
asked Jan 20, 2020 jwilliam 3.9k points