I set basic auth username and password. Then, inside the host of docker-registry, I am running docker login and by giving the auth credentials the .docker/config.json is produced. Furthermore, I can push and pull images to docker-registry.
On the other hand, if I try to do the same from kubernetes workers, meaning create a secret dockerconfig and use this secret inside a pod spec with an image from that registry, I am receiving bad certificate. I also receive bad certificates if I do the same actions as Pedro.
Just to add my experience here.
I set basic auth username and password. Then, inside the host of docker-registry, I am running docker login and by giving the auth credentials the .docker/config.json is produced. Furthermore, I can push and pull images to docker-registry.
On the other hand, if I try to do the same from kubernetes workers, meaning create a secret dockerconfig and use this secret inside a pod spec with an image from that registry, I am receiving bad certificate. I also receive bad certificates if I do the same actions as Pedro.