Skip to content

Instantly share code, notes, and snippets.

@moafred
Created January 12, 2017 13:49
Show Gist options
  • Save moafred/bb9911b3b08125e1ffc0c6d2b390533a to your computer and use it in GitHub Desktop.
Save moafred/bb9911b3b08125e1ffc0c6d2b390533a to your computer and use it in GitHub Desktop.
`/etc/logrotate.d/docker-container`
```/var/lib/docker/containers/*/*.log {
rotate 7
daily
compress
size=1M
missingok
delaycompress
copytruncate
}
```
`logrotate -fv /etc/logrotate.d/docker-container`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment