Hi,

I use `docker` to run containers. Each container uses `systemd` as PID 1. I pass `-v /var/log/journal:/var/log/journal` to `docker run` to accumulate journals on the docker host. Every time a container is started, a new journal file is generated based on the machine-id, leaving quite a few 8MiB-`system.journal`-files on the system after the container was "stopped".

Example:

~~~
docker run --name centos-1 --rm -ti -v /sys/fs/cgroup:/sys/fs/cgroup -v /var/log/journal:/var/log/journal feduxorg/centos
~~~

Is there way beside `find /var/log/journal -time +30 -delete` to get rid of stale old `journal`.files? I tried `MaxRetentionSec=1day` and `MaxTimeSec=1day`, but none of this made `systemd-journald` to delete the `system.journal`-files.

Thanks a lot.

Cheers,

Peter Paule

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to