adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
84 stars 100 forks source link

System low on space (docker): test-ibmcloud-rhel7-x64-1 #3535

Closed sxa closed 2 months ago

sxa commented 2 months ago

/var/lib/docker is consuming 52GB of space. Docker system df does not show a significant amount in use:

TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          4         0         2.264GB   2.264GB (100%)
Containers      0         0         0B        0B
Local Volumes   1         0         6.508MB   6.508MB (100%)
Build Cache     15        0         0B        0B

There are lots of directories under /var/lib/docker/overlay2 which areup to 1GB in size so it's not one individual container or image that is causing a problem here.

sxa commented 2 months ago

Issued the following to recover it:

systemctl stop docker
rm -rf /var/lib/docker
systemctl start docker