Each build seems to get a new #BTRFS subvolume at /var/lib/docker/btrfs/subvolumes
. This will overtime exhaust the whole root file system. In order to disable this behavior, create /etc/docker/daemon.json
with the contents:
{
"storage-driver": "overlay2"
}
I did not know this and neither could login to my system through GDM nor console. Luckily SSH login worked and I could delete all over 800 GB of subvolumes.
IMHO, objectively the default settings in #Docker are the worst ever.
@ikkeT did the switch to podman as the same build command-line and Dockerfile
did not cause issues. Just wanted be cautious at first :-)
Apparently these also got pre-created (probably) by Debian package’s post-install script:
$ cat /etc/sub{uid,gid}
jarkko:100000:65536
jarkko:100000:65536
This is the first time in my life when I’m pro-actively using containers in my work so better to be still somewhat conservative in choices and take babysteps :-) Although it gives some lift that I know what naemspaces and cgroups are, and how they work.