Docker pull docker.io/openpai/webportal:latest error

x509: certificate is valid for bw-production.space, *.bw-production.space, brickworksoftware.com, *.brickworksoftware.com, not registry-1.docker.io

Hi, Seeing the same thing when I try docker login - Docker version 18.09.6, build 481bc77 - Debian buster/sid

In my case, there was an entry in /etc/hosts for registry-1.docker.io that needed to be removed.