Created
February 28, 2020 21:55
-
-
Save wshihadeh/38e4f1cd8cc63a5a9cc268954e7620f9 to your computer and use it in GitHub Desktop.
Log rotate
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/*/*.log { | |
copytruncate | |
compress | |
dateext | |
daily | |
dateformat -%Y%m%d%H%s | |
maxsize 350M | |
missingok | |
olddir /var/log/docker | |
sharedscripts | |
lastaction | |
/var/log/docker/logs_rename /var/log/docker logs | |
endscript | |
rotate 30 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment