advancedTop 100 Interview Questions

What's the purpose of log rotation settings like `max-size` and `max-file`?

They cap how large any single log file grows and how many rotated files are retained per container, preventing unbounded disk usage from a chatty or long-running container's logs from filling up the host.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

What's the purpose of log rotation settings like `max-size` and `max-file`?

Next Step

Continue to How does Prometheus's pull-based model differ from a push-based metrics system?← Back to all Docker questions