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/

How can I solve this error?

Apr 14, 2020 in Docker by akhtar
• 38,210 points

1 answer to this question.

0 votes


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/
$ systemctl start docker
answered Apr 14, 2020 by MD
• 95,300 points
but it doesn't work
Did you get any error? If yes then share your error.
$ rm -rf /var/run/
rm: cannot remove '/var/run/': Permission denied

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
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,370 points
0 votes
7 answers

docker: executable file not found in $PATH

try to build the image with --no-cache. I ...READ MORE

answered Nov 1, 2020 in Docker by Deeptesh Agrawal
+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,140 points
+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,300 points