# du -csh /var/lib/docker/overlay2
580M 51d029d96e73b67e449f0b0570be47b6292da46c8c69b9f0dc6df35db85*****
2.3G ae38f397c79178185e26b87a9e2c6c890b0db9d3456de6d34ae3c3b96db*****
76M d1b8d94d2ecfa140794c61e2a81ad4a09eba1646d764018cf5afd433b51*****
4.5G ef92e2dc7a656c20eccbbdd40e660c76631ef48b6989f9ded3889a929eb*****
40K ef92e2dc7a656c20eccbbdd40e660c76631ef48b6989f9ded3889a929eb*****-init
24K l
7.4G total
# du -shc /var/lib/docker/overlay2/*/diff
580M /var/lib/docker/overlay2/51d029d96e73b67e449f0b0570be47b6292da46c8c69b9f0dc6df35db85*****/diff
2.3G /var/lib/docker/overlay2/ae38f397c79178185e26b87a9e2c6c890b0db9d3456de6d34ae3c3b96db*****/diff
76M /var/lib/docker/overlay2/d1b8d94d2ecfa140794c61e2a81ad4a09eba1646d764018cf5afd433b51*****/diff
996M /var/lib/docker/overlay2/ef92e2dc7a656c20eccbbdd40e660c76631ef48b6989f9ded3889a929eb*****/diff
20K /var/lib/docker/overlay2/ef92e2dc7a656c20eccbbdd40e660c76631ef48b6989f9ded3889a929eb*****-init/diff
3.9G total
# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
local_discourse/app latest b29b7073fea2 2 months ago 2.69GB
<none> <none> 30e4746e631e 3 months ago 2.23GB
docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 1 1 2.689GB 0B (0%)
Containers 1 1 950.4MB 0B (0%)
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
我尝试了以下操作,但并未奏效:
# /var/discourse/launcher cleanup
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 19G 5.1G 79% /
# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
local_discourse/app latest 8da0107aba03 2 months ago 2.7GB
discourse/base 2.0.20210415-1332 30e4746e631e 3 months ago 2.23GB
<none> <none> 1e6bf44c2762 5 months ago 2.46GB
discourse/base 2.0.20201221-2020 c0704d4ce2b4 7 months ago 2.11GB
# /var/discourse/launcher cleanup
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y
Deleted Images:
untagged: discourse/base:2.0.20201221-2020
untagged: discourse/base@sha256:e18*
deleted: sha256:1e6*
deleted: sha256:a22*
deleted: sha256:c07*
deleted: sha256:9b7*
deleted: sha256:87c*
untagged: discourse/base:2.0.20210415-1332
untagged: discourse/base@sha256:b3b*
Total reclaimed space: 2.456GB
# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
local_discourse/app latest 8da0107aba03 2 months ago 2.7GB
<none> <none> 30e4746e631e 3 months ago 2.23GB
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
local_discourse/app latest 8da0107aba03 2 months ago 2.7GB
# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 17G 7.8G 68% /
# docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 1 1 2.699GB 0B (0%)
Containers 1 1 1.13GB 0B (0%)
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 17G 7.8G 68% /
# du -shc /var/lib/docker/overlay2/*
4.9G /var/lib/docker/overlay2/627*
40K /var/lib/docker/overlay2/627*-init
2.3G /var/lib/docker/overlay2/91d*
592M /var/lib/docker/overlay2/d81*
76M /var/lib/docker/overlay2/fb9*
24K /var/lib/docker/overlay2/l
7.8G total
# du -shc /var/lib/docker/overlay2/*/diff
20K /var/lib/docker/overlay2/627*-init/diff
1.2G /var/lib/docker/overlay2/627*/diff
2.3G /var/lib/docker/overlay2/91d*/diff
592M /var/lib/docker/overlay2/d81*/diff
76M /var/lib/docker/overlay2/fb9*/diff
4.2G total