-
-
Save mpugach/20b038f42821d92b5da1235ddb44406a to your computer and use it in GitHub Desktop.
Logrotate docker logs, copy this file to /etc/logrotate.d/docker
This file contains hidden or 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 { | |
size 1Mb | |
daily | |
rotate 31 | |
dateext | |
compress | |
missingok | |
notifempty | |
copytruncate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment