How to free up disk space? Docker-volumes
-
wrote on Feb 15, 2024, 7:29 PM last edited by
Hi,
My docker-volumes, /var/lib/docker is taking up 57 GB (server only has 60GB) and now it's causing the app problems to start.
Is it safe to remove some of the docker images or data in the docker-volumes? It seems rather high to take up 57GB. I am only running one app, Freescout, and it was not used too much.
Thanks,
-
App Devwrote on Feb 15, 2024, 8:05 PM last edited by Kubernetes Feb 15, 2024, 8:05 PM
I had the same question some time ago and it turned out that it would be safe to use
docker system prune
. However Cloudron is usually automatically removing unused images. -
wrote on Feb 15, 2024, 8:28 PM last edited by makemrproper Feb 15, 2024, 8:32 PM
You need to remove some log files and also unused kernels
apt-get remove `dpkg --list 'linux-image*' |grep ^ii | awk '{print $2}'\ | grep -v \`uname -r\``
source: https://docs.cloudron.io/troubleshooting/
and:
Use ncdu to browse every container
My results:
Gained 1gb of storage by deleting /usr/local/share/.cache/yarn/ on a container volume
Gained 500mb of storage by deleting Anaconda distribution package cache within a container volume -
-
-