3

Trying this command

podman login -u [email protected] -p XXX@XXX_XXXXX -v docker.io                                                                                                                                                
Error: error logging into "docker.io": invalid username/password

The same credentials work with logging into docker hub.

podman version used is 4.0.3.

I am running on an MacBook Pro (16-inch, 2021) Apple M1 Max.

5
  • "... between the both ..." - between which both? docker and podman?
    – Turing85
    Commented May 1, 2022 at 0:54
  • If the error says that the creds don't work, then it's worth trying a different set of creds that you know work . Then if those don't work you know the problem is in the command not the creds. Commented May 1, 2022 at 0:55
  • yes I can log into docker hub with credentials and they work, then try the same credentials in the podman command line and they don't work. Commented May 1, 2022 at 0:58
  • Can you try podman login docker.io and input the credentials manually?
    – Turing85
    Commented May 1, 2022 at 0:59
  • I did try that as well, also i changed password so it only has letters, numbers, dashes Commented May 1, 2022 at 1:13

1 Answer 1

1

I was using my email as the username, which was not correct. I needed to use my "username". But since the portal allows me to login with my email, I thought that was my 'username'.

2
  • 1
    Happened to me a few years ago, happened again today. I think it would be nice if podman would warn if there is an @ in the user name, wouldn't it?
    – dreua
    Commented Oct 6, 2022 at 9:26
  • What if I have a OTP on the account? It seems that's thwarting me right now.
    – e40
    Commented May 22 at 18:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.