overlay2 for Docker within an unprivileged LXC container – Capi's Corner

Had a huge issue with #diskspace due to #docker and the size of some #overlay2 directories. A 1TB disk had hardly space left (a GB or 3) After a talk with #chatgpt [1] I could narrow it down to 1 directory in var/lib/docker/overlay2 using 32GB of data. In further drilling down I did find in the overlay/[...]/ diff/tmp/ directory some json files. This lead me to the docker causing the issue. (there should be some hits in the json file indicating which docker it is)