Created
October 16, 2014 17:44
-
-
Save jjneely/91c877d463681a93eac5 to your computer and use it in GitHub Desktop.
Logrotate for Docker's stdout/stderr json dumps
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
# Prune Docker's JSON format stdout/stderr files as they | |
# grow boundlessly. Also, deal with the fact that the Docker daemin | |
# will not re-open these files. | |
/mnt/docker/containers/*/*-json.log | |
{ | |
rotate 31 | |
daily | |
missingok | |
notifempty | |
compress | |
delaycompress | |
copytruncate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default path would be: /var/lib/docker/containers//-json.log
We alter the Docker container path in certain cases and this just happened to be a copy of that case.