From bc70832f4c33a458f2e913af702823539b2da7a1 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 24 Feb 2015 11:12:06 +0100 Subject: [PATCH] logrotate for docker containers --- global/overlay/etc/logrotate.d/docker-containers | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 global/overlay/etc/logrotate.d/docker-containers diff --git a/global/overlay/etc/logrotate.d/docker-containers b/global/overlay/etc/logrotate.d/docker-containers new file mode 100644 index 0000000..e9c90b8 --- /dev/null +++ b/global/overlay/etc/logrotate.d/docker-containers @@ -0,0 +1,7 @@ +/var/lib/docker/containers/*/*.log { + rotate 7 + daily + compress + delaycompress + copytruncate +}