When try to delete container, it failed to remove and reportd below error:

Error response from daemon: driver "overlay" failed to remove root filesystem for
c9cb...0542: remove /var/lib/docker/overlay/81df...3026/merged: device or resource busy


  1. Find out which process has mounted this busy mountpoint:

    $ sudo find /proc -maxdepth 2 -type f -name "mountinfo" -exec grep -nl 81dfae6c47d {} \;
  2. Check what’s the process according to above PID

    $ ps axf | grep 23512 | grep -v grep
    23512 ?        Ss     0:00 php-fpm: master process (/etc/php-fpm.conf)
  3. Restart the corresponding service

    e,g: In my case, it is php-fpm processes mounted the busy mountpoint, so we need restart it
    $ sudo systemctl restart php-fpm