Interview Prep/Docker/Resources, health checks, logging and restarts

Live logs are missing lines or delayed with `local` driver: `docker logs --since` shows fewer lines than expected after rotation.

AdvancedTroubleshootingResources, health checks, logging and restarts
Answer

Likely causes → Rotation (max-size, max-file) discarded older entries; small buffers with non-blocking mode drop messages (max-buffer-size exceeded).

Diagnose → Check log-opts; look for dropped messages in journalctl -u docker.

Fix → Raise sizes, ship logs externally before rotation, use blocking mode where loss is unacceptable.

Prevent → Size rotation for peak throughput, centralize logs.

All Docker questions Roadmap: Docker & containers

More on Resources, health checks, logging and restarts