Unauthorized: incorrect username or password

Slightly different for me, maybe it’s specific to the new-ish Apple chipped macs? I had to logout and login via the command line, the widget in the top right won’t actually get the terminal window to be logged in properly. But logging in via command line also updates the widget so you can then see your account settings and do all the other things.

Greetings,

I have the same issue with login in docker on my Windows PC with username and password. I know my username and my password is correct (copy/pasta) but I still get the failed login.
There is no proxy or other services that may divert/distort the traffic.

Thank you

I have the same issue ERROR: Head “https://registry-1.docker.io/v2/library/mariadb/manifests/latest”: unauthorized: incorrect username or password But logging in via command line by
docker login --username USER problem solved …

Small note: as everyone pointed out, it is necessary to log in with the username and not with the email. Another important note is that the username is entirely lowercase (even though I entered it with a capital letter initially) and the input is case sensitive. Gave me headaches because of an “I” instead of “i”.

Cheers!

This worked for me. Thank you very much!

The username is not your E-mail,It’s your login you webpage docker the right up the name.

Thank you, you are my saver

Error:-

Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username: MuhammedAdnanM
Password:
Error response from daemon: Get “https://registry-1.docker.io/v2/”: unauthorized: incorrect username or password

Solution

For those who have still issue, Please check the username as this is case sensitive
Do a “docker logout” before you perform the below,

Eg:- instead of using “docker login --username YourUseR” use “docker login --username youruser”

Note:- use only user name not the mail id.

1 Like

Thanks it really helps :slight_smile:

i cant login and this is command (but login is okay when i do it from cli) but this command wont work
i even changed this

await $docker login --username ${$.env.DH_USER} --password-stdin <<< ${$.env.DH_PASS};

to

await $docker login --username ${$.env.DH_USER} --password ${$.env.DH_PASS};
but no luck, getting the same unauthorized error

my credentials and 100% correct and im using windows
can someone pls help?

This worked for me on Ubuntu

yeap, got it up and running…

Im gonna be buried here but if by chance someone is running off a new account, try verifying your email! I had this issue, signing out and back in did not solve it. But when i finally verified my email after looking in account settings i could finally install visual studios.

2 Likes

This was my issue. I am working on a MacBook. Do docker logout and then docker login and use your username and not email.

Thank you hugodahl. Six years later your posted solution stills works.

Well done, man! Well done! Ty!

it works, you good people

This topic was automatically closed after 4 days. New replies are no longer allowed.