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

A container's clock drifts or time jumps.

AdvancedScenarioLimits, logging, health checks and restarts
Answer

Situation read → Containers use the host kernel clock; there is no per-container clock (except time namespaces, not used by Docker by default).

What I'd do → Fix NTP/chrony on the host. On Docker Desktop, restart the VM after sleep. Never run an NTP daemon inside a normal container (SYS_TIME needed).

Why → One kernel clock per host or VM.

Interview tip → Mention Docker Desktop VM drift after laptop sleep.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts