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.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response