TIL: Docker log rotation

60 points by polywolf


edwardloveall

Regardless of the subject, it's always really great to see:

Chef's kiss to the author, here.

maduggan

This has always been a really weird decision by Docker. Their default JSON logger supports rotation but it doesn’t compress and it doesn’t have a default set. I never understood why.

ptman

I know people don't like journald, but you really should try. It centralises log handling (ok, you can have that with syslog + logrotate as well) and makes sure you don't run out of disk space. It (by default) monitors disk space and limits logs so that there is space available