cancel
Showing results for 
Search instead for 
Did you mean: 
BODALIA
Mission Specialist
Mission Specialist
  • 10.9K Views

podman login command gives error:authenticating credentials

Jump to solution

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

Labels (1)
Tags (2)
1 Solution

Accepted Solutions
Fran_Garcia
Starfighter Starfighter
Starfighter
  • 5,948 Views

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

View solution in original post

24 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 6,835 Views
Hi Usha,
Thanks for reaching out ! Which container registry you are trying to log in ?
0 Kudos
BODALIA
Mission Specialist
Mission Specialist
  • 6,822 Views
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,
Usha


Unless otherwise stated above:

IBM United Kingdom Limited
Registered in England and Wales with number 741598
Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU
Tess
Flight Engineer
Flight Engineer
  • 6,612 Views

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. 

  1. Does your RHEL box have an Internet connection? 
  2. The message says that your DNS server is 192.168.83.2. Is that correct? How did you configure your networking?
  3. What's the outcome of "nslookup www.google.com"?
  4. What's the outcome of "ping www.google.com"?
  5. What's the outcome of "ping 8.8.8.8"?
Chetan_Tiwary_
Community Manager
Community Manager
  • 6,810 Views

What about the DNS and general curl  connectivity to the registry URL ( without podman login ) ?

0 Kudos
kash
Cadet
Cadet
  • 4,484 Views

what is the solution for this

 

0 Kudos
mansin99
Cadet
Cadet
  • 1,123 Views

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

0 Kudos
mansin99
Cadet
Cadet
  • 1,074 Views
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
0 Kudos
BODALIA
Mission Specialist
Mission Specialist
  • 6,817 Views

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,

0 Kudos
Tess
Flight Engineer
Flight Engineer
  • 6,800 Views

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. 

0 Kudos
Join the discussion
You must log in to join this conversation.