Looks like a simple question with a simple answer but it is not working for me in my VMware Rhel9 machine that I have set up. I have successfully installed container-tools, but am unable to log in to the container registry. I am using my username and password that I used to register the machine, the same as the one I use to log in to my course RHCSA Rapid Track
Can anyone help me please?
Thanks,
Usha
I think the reference to crane.registry.redhat.com is misleading. I can just search and download images just fine:
➜ grep redhat.com /etc/containers/registries.conf
unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "docker.io", "quay.io"]
➜ podman login registry.access.redhat.com
Username: XXXX <-- it's the same user/password I use for the RH Portal at https://access.redhat.com
Password:
Login Succeeded!
➜ podman search ubi | grep registry.access
registry.access.redhat.com/ubi8/go-toolset Platform for building and running Go 1.11.5...
registry.access.redhat.com/ubi9/go-toolset rhcc_registry.access.redhat.com_ubi9/go-tool...
registry.access.redhat.com/ubi8/openjdk-8-runtime OpenJDK 1.8 runtime-only image on Red Hat Un...
registry.access.redhat.com/ubi8/openjdk-11-runtime OpenJDK 11 runtime-only image on Red Hat Uni...
[...]
➜ podman pull registry.access.redhat.com/ubi9/ubi:latest
Trying to pull registry.access.redhat.com/ubi9/ubi:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob 33b9f09cff46 done
Copying config e7236a3e07 done
Writing manifest to image destination
Storing signatures
e7236a3e070f267713ad79c451b8628166abc0bc9c855f624619e099ec3faa99
➜ curl -vi https://registry.access.redhat.com
➜ echo $?
0
➜ getent hosts registry.access.redhat.com
23.200.66.161 e40408.d.akamaiedge.net
23.200.66.155 e40408.d.akamaiedge.net
➜ podman logout registry.access.redhat.com
Removed login credentials for registry.access.redhat.com
➜ podman pull registry.access.redhat.com/ubi8-minimal:latest
Trying to pull registry.access.redhat.com/ubi8-minimal:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob d2b5f358ecf1 skipped: already exists
Copying config f4fb65011c done
Writing manifest to image destination
Storing signatures
f4fb65011c56d354c56b9d688b2da5bd1e887a0108fe0d7554c6a4c514d89cb4
The error message you're getting is not about the credentials themselves.
It's telling you that your RHEL9 box cannot do a DNS lookup of the host you're telling it to find. So, it's time for basic troubleshooting.
What about the DNS and general curl connectivity to the registry URL ( without podman login ) ?
what is the solution for this
the issue is related to resolving the DNS.
If DNS issues persist, you can specify a custom DNS configuration for Podman by editing /etc/containers/containers.conf or /etc/containers/registries.conf and adding the dns entry under the [containers] section, also remove any other DNS entries.
[containers]
dns = ["8.8.8.8", "1.1.1.1"]
then sudo systemctl restart podman
this should resolve the issue
Hi Chetan, from my vmware virtual terminal, I am running command podman login registry.access.redhat.com I read somewhere that authentication is not required for this registry but it still asks me, so I put in username ushakant, and the password that I use to login to my course. The error that I get is as follows: Error: authenticating creds for "registry.access.redhat.com": pinging container registry registry.access.redhat.com: Get https://registry.access.redhat.com/v2/: dial tcp: lookup registry.access.redhat.com on 192.168.83.2:53: read udp 192.168.83.133:40892->192.168.83.2:53: i/o timeout Thank you,
I could have sworn that I posted a response in this thread. Don't know why it's gone
The error message you're getting indicates a network problem, not one of authentication.
The message says you're trying to DNS lookup against 192.168.83.2. Is that really the DNS server for your Redhat box? Please verify your network configuration, because your Redhat box cannot reach your DNS server.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.