Created
January 12, 2017 13:49
-
-
Save moafred/bb9911b3b08125e1ffc0c6d2b390533a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`/etc/logrotate.d/docker-container` | |
```/var/lib/docker/containers/*/*.log { | |
rotate 7 | |
daily | |
compress | |
size=1M | |
missingok | |
delaycompress | |
copytruncate | |
} | |
``` | |
`logrotate -fv /etc/logrotate.d/docker-container` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment