Podman login failed
Issue
- Not able to login using podman.
- Podman failed to login into internal registry.
- Podman login failed with following error.
sudo podman login -u $(oc whoami) -p $TOKEN image-registry.openshift-image-registry.svc.cluster.local:5000 --log-level debug
DEBU[0000] Looking for TLS certificates and private keys in /etc/docker/certs.d/image-registry.openshift-image-registry.svc.cluster.local:5000
DEBU[0000] crt: /etc/docker/certs.d/image-registry.openshift-image-registry.svc.cluster.local:5000/ca.crt
DEBU[0000] GET https://image-registry.openshift-image-registry.svc.cluster.local:5000/v2/
DEBU[0000] Ping https://image-registry.openshift-image-registry.svc.cluster.local:5000/v2/ status 401
DEBU[0000] GET https://image-registry.openshift-image-registry.svc.cluster.local:5000/openshift/token?account=kube%3Aadmin
ERRO[0000] error logging into "image-registry.openshift-image-registry.svc.cluster.local:5000": invalid username/password
Environment
- OpenShift Container Platform 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.