Dead container cannot be deleted
If you see the error message something like this:
Error response from daemon: Cannot destroy container elated_wozniak: Driver devicemapper failed to remove root filesystem 656cfd09aee399c8ae8c8d3e735fe48d70be6672773616e15579c8de18e2a3b3: Device is Busy
You can delete dead containers with the command
Ошибка: Error response from daemon: driver "overlay" failed to remove root filesystem for <some-id>: remove /var/lib/docker/overlay/<some-id>/merged: device or resource busy
3.1. Check what other processes also use docker resources
that will output something like the following, where the figure after /proc/ equals pid:
3.2. Check the process name above pid
Nginx with pid 12345 also uses /var/lib/docker/overlay/... so we cannot delete the associated container and get the error device or resource busy.
3.3. Stop Nginx,
3.4. Delete the container.
3.5 Start the process
3.6. We recommend that you restart the system if there are many processes.