Problem:
A dockerized app (f.e. nextcloud) can not be updated.
univention-app upgrade nextcloud
stucks in
removing the old container
ps aufx |grep rm shows
root 2998 0.1 0.6 500756 48632 pts/6 Sl+ 10:47 0:00 _ docker rm f06bc517e692b802acf3530c5918b3c7f1fa2ba100744324ae2e1abecd98935a
CONTAINER ID IMAGE COMMAND CREATED STATUS
f06bc517e692 docker.software-univention.de/nextcloud:20.0.2-0 “/bin/sh -c /usr/sbi…” 4 weeks ago removing in Progress
Maybe the io increases rapidly
Investigation
You can also check for older image versions
docker image list
which you might want to remove
docker image rm e4957a53f50e
Solution:
While the app upgrade process is running you can move the to be deleted container and restart the docker service
mv /var/lib/docker/containers/f06bc517e692b802acf3530c5918b3c7f1fa2ba100744324ae2e1abecd98935a/ ~/univention-support/
systemctl restart docker.service