adamant-kite-43734
01/31/2024, 12:53 PMwide-mechanic-33041
01/31/2024, 1:00 PMbrave-architect-61574
01/31/2024, 1:01 PMbrave-architect-61574
01/31/2024, 1:03 PMwide-mechanic-33041
01/31/2024, 5:23 PMfast-garage-66093
01/31/2024, 7:24 PMdocker system prune
(use --all
option to delete images not currently in use).fast-garage-66093
01/31/2024, 7:26 PMtrim
the disk. You need to run du
to see how much space the file actually takes, as it is a sparse file. ls -l
will show the allocated max size, but freed blocks are not actually in use.
$ du -h ~/Library/Application\ Support/rancher-desktop/lima/0/diffdisk
2.1G /Users/jan/Library/Application Support/rancher-desktop/lima/0/diffdisk
fast-garage-66093
01/31/2024, 7:27 PMfast-garage-66093
01/31/2024, 7:31 PMfstrim
both during boot, and before shutting down the VM, but if you want to delete a bunch of images and release the space without restarting Rancher Desktop then you can also call it manually with rdctl shell sudo fstrim /mnt/data
wide-mechanic-33041
01/31/2024, 8:46 PMfast-garage-66093
01/31/2024, 8:48 PMfstrim
will release blocks and they will create holes in the sparse file when possible.wide-mechanic-33041
01/31/2024, 8:49 PMfast-garage-66093
01/31/2024, 8:50 PM/mnt/data
, not on the ramdisk), check the du
info on the host, and then delete the blocks and run fstrim /mnt/data
fast-garage-66093
01/31/2024, 8:50 PMdocker system prune
is the obvious candidate; there are also buildkit caches etc that can be reclaimedfast-garage-66093
01/31/2024, 8:52 PMfast-garage-66093
01/31/2024, 8:54 PMfast-garage-66093
01/31/2024, 8:56 PMls -l
and see the large files. You have to use du
to see the actual usage, and even then you don't see how space may be shared with snapshot files. But that is the nature of modern file systemsfast-garage-66093
01/31/2024, 8:58 PM