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,170 points
8,379 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,060 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
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,290 points
377 views
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
33,498 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,100 points
1,039 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,060 points
883 views