I often run into disk space issues when building docker images (like JS errors "ENOSPC: no space left on device
). I am used to run docker system prune
to clear up some space, but it was a bit too often to my liking and I realised maybe something was not working as expected
After running a docker system prune
I have the following docker system df
output
> docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 102 0 41.95GB 41.95GB (100%)
Containers 0 0 0B 0B
Local Volumes 53 0 5.254GB 5.254GB (100%)
Build Cache 383 0 0B 0B
It seems like there are still 42GB disk space used by images (or does this refer to some sort of "reserved space" for docker ? Anyways if those 42GB are held up somehow, it could very much explain why my disk is getting so full so often
I am on macOS and with the above docker system df
, when I open my docker app > Resources I see
Disk image size: 120 GB (81.3 GB used)
Am I missing something ?