Skip to content

Instantly share code, notes, and snippets.

@bayendor
Forked from chernjie/logrotate.d-docker
Last active October 6, 2015 15:56
Show Gist options
  • Save bayendor/c39317e3601ee0159634 to your computer and use it in GitHub Desktop.
Save bayendor/c39317e3601ee0159634 to your computer and use it in GitHub Desktop.
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