Skip to content

Instantly share code, notes, and snippets.

@bayendor
Forked from chernjie/logrotate.d-docker
Last active October 6, 2015 15:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Logrotate docker logs, copy this file to /etc/logrotate.d/docker
/data/docker/containers/*/*-json.log {
daily
rotate 7
size 100M
compress
delaycompress
missingok
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment