Skip to content

Instantly share code, notes, and snippets.

@sevkin
Created November 7, 2014 14:01
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 sevkin/40d619c158a5a509ef42 to your computer and use it in GitHub Desktop.
Save sevkin/40d619c158a5a509ef42 to your computer and use it in GitHub Desktop.
rotate docker containers logs
/var/lib/docker/containers/*/*.log {
rotate 7
daily
compress
delaycompress
copytruncate
sharedscripts
postrotate
/usr/bin/docker restart forwarder
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment