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,230 points
64,380 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,440 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.

Related Questions In Docker

0 votes
0 answers
0 votes
1 answer
+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,360 points
1,473 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,090 points
2,472 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,440 points
15,213 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