Failed to remove container in Openshift
Issue
-
I'm unable to remove dead docker containers with
docker rm
:$ docker rm 004b32271132 Error response from daemon: Driver devicemapper failed to remove root filesystem 004b32271132e4218af8fd319991ba3a927c13e5bdc4462fcc81598f32d4d51c: error while removing /var/lib/docker/devicemapper/mnt/f36fec6f819dc57923e5808d3f621658a039552bcd04e6dc50f6b22fa7869c65: invalid argument
-
I can see the following errors in
/var/log/messages
:Failed to remove container (99ab1e313745): Error response from daemon: Unable to remove filesystem for 99ab1e313745f7392f3128b15bec6f5503ea5e567865747d54d65e3298b18c6a: remove /var/lib/docker/containers/99ab1e313745f7392f3128b15bec6f5503ea5e567865747d54d65e3298b18c6a/shm: device or resource busy Failed to remove container (b6a95c3cda24): Error response from daemon: Unable to remove filesystem for b6a95c3cda248c25e1df8a12b5ad3f47b79d8c7bf5cb9b024f9f3a31ae5ac534: remove /var/lib/docker/containers/b6a95c3cda248c25e1df8a12b5ad3f47b79d8c7bf5cb9b024f9f3a31ae5ac534/shm: device or resource busy
Environment
- Red Hat Enterprise Linux (RHEL) 7 (>= 7.4)
-
Openshift Container Platform (OCP) 3.X
NOTE: If you are using RHEL 7.3 or below, please, check KCS 3150891.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.