Error starting daemon pid file found ensure docker is not running or delete var snap docker 179 run docker pid

0 votes

I am trying to start docker service, but it shows me the below error.

Error starting daemon: pid file found, ensure docker is not running or delete /var/snap/docker/179/run/docker.pid

How can I solve this error?

Apr 14, 2020 in Docker by akhtar
• 38,260 points
69,716 views

1 answer to this question.

0 votes

Hi@akhtar,

It means the previous PID file of docker service is still available. So when you try to start your docker service, it can't start the service because one process id is already present. To avoid this error, you have to remove the previous PID file and then try to start your service.

$  rm -rf /var/snap/docker/179/run/docker.pid
$ systemctl start docker
answered Apr 14, 2020 by MD
• 95,460 points
but it doesn't work
Did you get any error? If yes then share your error.
$ rm -rf /var/run/docker.pid
rm: cannot remove '/var/run/docker.pid': Permission denied
Hi,

You need to run the command with Sudo power or from the root user. Otherwise, it will give you the above error.
sudo rm -rf /var/run/docker.pid comment has worked
Bro it is showing that there is no such file or directory , what to do? Thanks in advance
0 votes
sudo rm -rf /var/run/docker.pid
answered Dec 22, 2022 by Marshall

edited Mar 5

Related Questions In Docker

0 votes
0 answers
0 votes
1 answer

How do I fix this error? docker run --- name “xyz” is already in use by container

You need to remove container "registry-v1". Run docker rm ...READ MORE

answered Feb 19, 2021 in Docker by Abhinav Kumar

edited Mar 5 12,317 views
+1 vote
1 answer

Error while running docker run command

This error occurs when your port is ...READ MORE

answered Jul 26, 2018 in Docker by Kalgi
• 52,350 points
2,078 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,848 views
+1 vote
1 answer

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

Hi@akhtar, It seems the docker service is not ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,460 points
15,663 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP