How to delete a directory or clean up the container, if it has a mount in another mount namespace ?

Solution Verified - Updated -

Issue

  • Unable to delete the container with error:" device or resource busy "
# docker rm test1
Error response from daemon: Driver overlay failed to remove root filesystem f1a558e7e9b4a91d3ed3efe62ab208611f360f04614eb70bfb43c42642c2141d: remove /home/docker/overlay/33cec69c254c7b88f9d13b9443903dc185bf70549ed1a510f42f1f0d7f0518af/merged: device or resource busy

Environment

  • Red Hat Enterprise Linux 7
  • docker-1.12.6*

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content