-
-
Save foxel/c5164673c74961b9343e to your computer and use it in GitHub Desktop.
Logrotate docker logs, copy this file to /etc/logrotate.d/docker
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
/var/lib/docker/containers/*/*-json.log { | |
dateext | |
daily | |
rotate 60 | |
compress | |
delaycompress | |
missingok | |
copytruncate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment