Unable to connect to docker.io - wrong certificate

I use docker on a debian linux server, but something has gone wrong in the networking for my docker install.
trying to pull an image gives me the following error:

root@Charizard:/etc/ssl/certs# docker pull nextcloud
Using default tag: latest
Error response from daemon: Get "https://registry-1.docker.io/v2/": tls: failed to verify certificate: x509: certificate is valid for mycroft.kobubob.com, not registry-1.docker

the system seems to be trying to verify using a cert that I have never heard of, not sure what is going on. maybe a DNS issue?

Something must be wrong in your network. Where are you running Docker? Is it in a corporate network? Or do you have any antivirus on your machine? The only time I saw different domain when I tried to pull images is when I had an antivirus on my machine which had a built-in SSL inspection, but it could be somewhere else in your network.

Thanks for your reply, this has somehow resolved. . . I think it was a DNS issue but I can’t really offer any useful further explanation.