Fix podman cannot pull image due to certificate is not yet valid in MacOS

Pawat Siriwattanayotin
HLab
Published in
2 min readJun 11, 2022

Problem

I try to pull docker image using podman but I found an error as shown below.

Solution

The clue for this solution is the current time. The time shown in the error is the time of podman virtual machine. Let's take a look at that virtual machine.

First shell into podman virtual machine. Note I have only a single virtual machine for podman.

podman machine ssh

Secondly, check the current time of this machine.

It seems like the current time is behind the actual current time.

I try to restart timesyncd with the following command.

sudo systemctl restart systemd-timesyncd.service

The actual current time is now correct.

However, after researching for this solution, I found this problem is an open bug of podman. Hope it will be able to replace docker completely soon.

Here is a link to the issue.

--

--

Pawat Siriwattanayotin
HLab
Editor for

Full stack developer, DevOps, CTO, Learner, Football Lover