Error during the removing docker container: Driver overlay failed to remove root filesystem: device or resource busy

Follow

Comments

4 comments

  • Avatar
    iamkingsleyf

    workaround does not seems to work

  • Avatar
    Pavel Mikhaylov

    Hello iamkingsleyf,

    Could you provide more information?

    What version of kernel did you install?

    What is the exact version of OS you have installed?

  • Avatar
    Ovidiu Bratosin (Edited )

    I had a similar problem and just removing the proxy rules created on the domain, before trying to remove the container, seems to allow removing it without issues.

    Update:

    Looks like the order of doing it matters:

    a) Remove proxy rule, stop container, remove container -> error

    b) Stop container, remove proxy rule, remove container -> works

    In case of a), if you already removed the proxy rule, creating another container and adding a new proxy rule (same domain/subdomain) towards the new one will allow you to remove the older one immediately.

    This seems somehow to be linked to modifying nginx config file after the container is stopped.

    Env: VM with Centos 7.4 core, 1 partition with xfs (ftype=1), Plesk Onyx 17.5.3, docker storage driver: overlay

    uname -r
    3.10.0-693.11.1.el7.x86_64

  • Avatar
    Nikolay Zhmuk

    @Ovidiu hi, thanks for the input, I have updated the article with additional steps.

Please sign in to leave a comment.

Have more questions? Submit a request