Created
November 7, 2014 14:01
-
-
Save sevkin/40d619c158a5a509ef42 to your computer and use it in GitHub Desktop.
rotate docker containers logs
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/*/*.log { | |
rotate 7 | |
daily | |
compress | |
delaycompress | |
copytruncate | |
sharedscripts | |
postrotate | |
/usr/bin/docker restart forwarder | |
endscript | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment