Skip to content

Instantly share code, notes, and snippets.

@mpugach
Forked from chernjie/logrotate.d-docker
Last active December 7, 2016 04:57
Show Gist options
  • Save mpugach/20b038f42821d92b5da1235ddb44406a to your computer and use it in GitHub Desktop.
Save mpugach/20b038f42821d92b5da1235ddb44406a 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 {
size 1Mb
daily
rotate 31
dateext
compress
missingok
notifempty
copytruncate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment