Cannot pull from https://registry-1.docker.io/v2/

Hi,

I cannot pull from https://registry-1.docker.io/v2/ from my personal computer (windows 10 / WSL2, Docker Desktop 2.3.1.0 / edge), on my private network with no proxy, either using docker or podman, the certificate I receive does not match the hostname [1].

When I browse to that URL with my phone, on the same network, I get another certificate which is valid.

Can anyone try to help me to understand what is happening?

Thanks,
Fred.

[1]

Here are the docker and podman command I used:

Ok, I’ve finally managed to find out that time ago I has create a multistage docker build, the first stage could not see docker.io and I added some registry IP to my hosts file and forgot to remove them, there are not valid anymore but was still there, cleaning my host file resolved my issue, I keep that topic here in case something that’s stupid occurs to someone else.