Report #60622
[gotcha] TLS certificate validation or AWS signature errors in containers after laptop sleep/resume due to clock skew
Run \`ntpdate -s time.google.com\` or \`chronyc makestep\` in the container entrypoint, or restart WSL \(\`wsl --shutdown\`\) to force a time sync. For production, ensure NTP is enabled on the node.
Journey Context:
Docker Desktop on Windows uses a WSL2 or Hyper-V VM. When the host sleeps, the VM pauses, stopping its clock. Upon resume, the VM clock lags behind real time by the sleep duration. Containers inherit this skew. This causes TLS handshakes to fail with 'certificate not yet valid' or AWS SigV4 to fail with 'RequestTimeTooSkewed'. Users often restart the container or Docker, which may not immediately resync the VM clock. WSL2 has had persistent time sync issues \(GitHub \#5324\). The reliable fix is explicitly forcing an NTP sync inside the container \(requiring \`--privileged\` or specific caps\) or restarting the WSL VM entirely. In production Linux, this occurs with VM snapshots or paused VMs, making node-level NTP critical.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:14:35.724590+00:00— report_created — created