Today, the version of IDEA has failed to be sent to docker. Check that the container has stopped running on the server, but it cannot be deleted. Delete error as follows:

docker rm -f app-***
Copy the code

Error response from daemon: Driver devicemapper failed to remove root filesystem 468a8fea6b60945a596baf4ec703d024fc754a05dd28772f1220010ae83e1b0d: remove /var/lib/docker/devicemapper/mnt/ae69a873d24575fa5b7922bc25f670b513a0a1ff6a4901d086239f4f5d23197d: device or resource busy

The container is in the dead state

Solution:

1. Check which process is mounting resources

grep -l --color `docker ps -a --filter status=dead -q |head -n 1` /proc/*/mountinfo
Copy the code

Output:

/proc/3623/mountinfo
Copy the code

Here 3623 is the process PID

2. Check the process

ps -f 3623
Copy the code

I have A Redis. Forget it. Stop redis

service redis stop
Copy the code

Succeeded in deleting the container. Procedure

If it is another process, try to kill it