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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.