Skip to content

Instantly share code, notes, and snippets.

@foxel
Forked from chernjie/logrotate.d-docker
Last active October 23, 2015 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxel/c5164673c74961b9343e to your computer and use it in GitHub Desktop.
Save foxel/c5164673c74961b9343e to your computer and use it in GitHub Desktop.
Logrotate docker logs, copy this file to /etc/logrotate.d/docker
/var/lib/docker/containers/*/*-json.log {
dateext
daily
rotate 60
compress
delaycompress
missingok
copytruncate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment