advancedTop 100 Interview Questions
Why are container logs ephemeral by default, and what's the production implication?
Logs written to stdout/stderr are captured by the configured log driver but tied to that specific container instance; once the container is removed, its log history (and any logs not shipped elsewhere) is gone. Production systems must ship logs to a centralized, off-host store to retain them beyond a container's lifecycle.
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