summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-02-24 11:12:06 +0100
committerLeif Johansson <leifj@sunet.se>2015-02-24 11:12:06 +0100
commitbc70832f4c33a458f2e913af702823539b2da7a1 (patch)
tree834959286a8b875a03bef4e08f224b11a3b09712
parent0db53806e6d8ee9eb7e726077c81d8260850c6fd (diff)
logrotate for docker containers
-rw-r--r--global/overlay/etc/logrotate.d/docker-containers7
1 files changed, 7 insertions, 0 deletions
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
+}