Skip to content

Instantly share code, notes, and snippets.

@pavelanni
Created November 13, 2024 16:03
Show Gist options
  • Save pavelanni/2b85c4709570eb8820c5b6e520b91890 to your computer and use it in GitHub Desktop.
Save pavelanni/2b85c4709570eb8820c5b6e520b91890 to your computer and use it in GitHub Desktop.
Synchronize Podman machine's clock with NTP

The problem: when you close your Macbook lid and put it on sleep, the Podman machine's time lags the real time. That brings hard-to-detect problems with certificate verification (look for certificate has expired or is not yet valid in the error messages).

The solution is to podman machine ssh and run timedatectl set-ntp yes. Or run it as a single command from your laptop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment