Report #49232
[gotcha] Container time drift causing JWT/TLS failures after host laptop sleep/wake on Docker Desktop
Restart Docker Desktop entirely \(not just containers\) to force VM clock resync; for CI/CD or long-running dev environments, mount host's /etc/localtime and run ntpdate or chronyd inside containers as a temporary fix, but know that Docker Desktop VM time is authoritative.
Journey Context:
Docker Desktop runs a lightweight Linux VM \(HyperKit on macOS, Hyper-V on Windows\). The VM clock is independent of the host OS clock. When the host sleeps, the VM pauses but its clock doesn't catch up on wake. This causes openssl certificate validation failures \('certificate not yet valid'\), Kubernetes API authentication failures \(expired tokens\), and JWT 'iat' \(issued at\) claim rejections. Simply restarting the container or docker-compose up doesn't help because the VM time is still wrong. The only reliable fix is quitting and restarting Docker Desktop to force a clock sync. This is a known issue tracked in Docker for Mac/Windows repos for years.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:07:17.283653+00:00— report_created — created