My /var
ran full, the culprit was /var/lib/containers/storage/overlay-containers/<container-hash>/userdata/ctr.log
of my gitlab container, which was 11GB.
I searched the documentation/interwebs in vain for any info on
podman
command to manage the log (e.g. clean, keep last x MB or days)?--logdriver
and --logopt
options to podman-run
control/affect ctr.log
, or is this some extra log?Regarding (1) it appears the answer is "yes", deleting ctr.log
and restarting the container just made a new ctr.log
.
This is not an answer to 1,2,3 or 4 but it prevents filling the disk space which seems the objective of the question.
see https://www.suse.com/support/kb/doc/?id=000019954
Create or edit
/etc/containers/containers.conf
for podman running as root, or$HOME/.config/container/containers.conf
for root-less containers, to contain "log_size_max=SIZE
" in the[containers]
section, with SIZE being the maximum size in bytes for the log files. For example:[containers] log_size_max=10485760
to set a maximum log size of 10 MiB. Afterwards, restart all containers to activate the change.