RTIInternational / NHLBI-BDC-DMC-DST

My personal repository for work on the BioData Catalyst Dashboard
Apache License 2.0
4 stars 3 forks source link

Docker is filling disk space #84

Closed amc-corey-cox closed 1 month ago

amc-corey-cox commented 1 month ago

I just logged in and noticed that almost all of the disk space had been used. Digging a bit deeper it appears that var/lib/docker is using a lot of space, especially in overlay2.

I think this may also be why the system has been occasionally crashing when left running for a long time.

amc-corey-cox commented 1 month ago

First I needed to free up a bit of disk space, which I did be deleting all docker logs.

find /var/lib/docker/containers/ -type f -name "*.log" -delete

Then I removed all dangling objects.

docker system prune --volumes --all

This allowed me to clear the space. I'll need to keep a track on this in the future.