I have 2 servers:
- 1st install Ubuntu + Rancher Server
- 2nd install Ubuntu + Rancher Agent + my app
2nd server is running many container. Sometime, I stop and delete some container to deploy new version of application, and it show error
sudo docker rm -f 4a6acc834b6c
Error response from daemon: Cannot destroy container 4a6acc834b6c: Driver aufs failed to remove root filesystem 4a6acc834b6c82133c885ba97589816ac77e961f7b56bd5bd4cab822309542b6: rename /var/lib/docker/aufs/mnt/4a6acc834b6c82133c885ba97589816ac77e961f7b56bd5bd4cab822309542b6 /var/lib/docker/aufs/mnt/4a6acc834b6c82133c885ba97589816ac77e961f7b56bd5bd4cab822309542b6-removing: device or resource busy
Error: failed to remove containers: [4a6acc834b6c]
If I delete on website of rancher server, it’s ok. Or I must run the following command before I can delelte it:
sudo umount -l $(grep ‘aufs’ /proc/mounts | awk ‘{print$2}’ | sort -r)
Why rancher agent deny deleting container?