Docker - Cannot remove dead container

0 votes

I’m unable to remove dead docker containers.

I try to remove them using the following command

docker rm -f 11667ef16239

Its temporarily gone but when I restart the docker, it reappears

Jul 26, 2018 in Docker by Hannah
• 18,520 points
6,793 views

1 answer to this question.

0 votes

Try to unmount these blocked filesystems to release them

You might come across the following error

Error response from daemon: Cannot destroy container elated_wozniak: Driver devicemapper failed to remove root filesystem 656cfd09aee399c8ae8c8d3e735fe48d70be6672773616e15579c8de18e2a3b3: Device is Busy

Run the following command

umount /var/lib/docker/devicemapper/mnt/656cfd09aee399c8ae8c8d3e735fe48d70be6672773616e15579c8de18e2a3b3

and you can normally remove container after that using the following syntax

docker rm [OPTIONS] CONTAINER [CONTAINER...]
answered Jul 26, 2018 by Kalgi
• 52,350 points
what can i do on windows?
If you are getting the same issue then try the above solution. Docker commands are the same on the windows system also.

Related Questions In Docker

0 votes
1 answer

Error: Cannot access server in docker container

Try to publish your port: docker run -p ...READ MORE

answered Sep 7, 2018 in Docker by Tyrion anex
• 8,700 points
1,082 views
+1 vote
1 answer

Remove volume attached to a docker container

If the volume is being referenced by ...READ MORE

answered Nov 25, 2019 in Docker by Aria
1,472 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,735 views
0 votes
1 answer

Docker error cannot delete docker container, conflict: unable to remove repository reference

First, remove the container names $ sudo docker ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 52,350 points
5,860 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 34,232 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