How to free up disk space? Docker-volumes
Solved
Support
-
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,
-
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 -
-
-