docker system df: Total number of images does not equal installed apps
-
Hello Team,
I just ran
docker system df
. It outputs 16 images und 18 containers as a grand total although we only have 8 apps installed currently. Are the remaining images/containers some kind of cruft?root@my ~ # docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 16 16 8.133GB 1.45GB (17%) Containers 18 17 69.63kB 0B (0%) Local Volumes 42 34 378.4MB 70.35kB (0%) Build Cache 0 0 0B 0B
-
If u use Apps, that need more container, like nextcloud or wp, you need to count redis too, for exemple.
And there are System Apps to, like Haraka for the email -
-
@xaddison said in docker system df: Total number of images does not equal installed apps:
sudo docker container prune -f && sudo docker image prune -f
You shouldn't mess with docker on the server where is your Cloudron installation, you shouldn't even update the server, to the risk of breaking your installation and / or some vital functions of it.
If you want to keep playing docker you should do it on another server because Cloudron is meant to take care of all this by itself. My two cents of advice.
-
@xaddison the prune is done automatically when needed in the code. Most likely the containers that got removed are the ones that were "stopped". Cloudron runs cron jobs of apps in containers, for example. They will be in stopped state after finishing a run but will be reused in the next run. As for images, not sure what it cleaned up. Do you have the output of what it removed?