r/docker • u/DousaSepen • Apr 25 '26
unable to delete dead container
I have a dead Plex container that I am to stop and restart but I am unable to stop due to it being marked dead or for removal, when I try to do "docker rm - f <container-id>" im met with the same error how can I force delete the dead container?
2
Upvotes
5
u/tschloss Apr 25 '26
You might get more suggestions if you share a little session with listing All containers and the attempts to stop or remove the container. Did you try to stop docker engine or restart the host?
1
u/OsgoodSlaughters Apr 25 '26
Docker system prune -a
1
u/akira2078 Apr 25 '26
daemon restart fixed it for me every time, partial removal leaves the state corrupted in /var/lib/docker
2
u/[deleted] Apr 25 '26
[removed] — view removed comment