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.
More on Limits, logging, health checks and restarts
A Java container is OOM-killed at 512 MB. Why isn't the heap the whole story?IntermediateHow do you cap CPU and memory for a container and what happens on exceed?BeginnerLatency spikes though CPU usage looks low (50%).Advanced`docker logs` is empty but the app is running.BeginnerConfigure log rotation globally.BeginnerShip container logs to a central system.Intermediate