hub-feedback icon indicating copy to clipboard operation
hub-feedback copied to clipboard

Error unauthorized: incorrect username or password

Open chespinoza opened this issue 9 years ago • 57 comments

Step 1/4 : FROM bitnami/minideb:stretch Get https://registry-1.docker.io/v2/bitnami/minideb/manifests/stretch: unauthorized: incorrect username or password

Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:31:53 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:51:55 2017
 OS/Arch:      linux/amd64
 Experimental: true

and also I can't login with my credentials using: docker login Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password

But I can login to https://hub.docker.com with the same credentials.

chespinoza avatar Jul 13 '17 13:07 chespinoza

Try first: $ docker logout

and then pull again. As it is public repo you shouldn't need to login

edouardr avatar Jul 19 '17 08:07 edouardr

@edouardr I've already tried that without any success, I get the same error.

chespinoza avatar Jul 19 '17 19:07 chespinoza

I've been trying the to follow the tutorial and it's broken... when I run docker build -t friendlyhello . I get

Get https://registry-1.docker.io/v2/library/python/manifests/2.7-slim: unauthorized: incorrect username or password

When I skip ahead in the tutorial and attempt to login with docker login I get a new wonderful error...

Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password

Gonkers avatar Sep 07 '17 21:09 Gonkers

+1

$docker -v
Docker version 17.06.2-ce, build cec0b72
$ docker build .
Sending build context to Docker daemon  8.192kB
Step 1/9 : FROM node:8.4.0
Get https://registry-1.docker.io/v2/library/node/manifests/8.4.0: unauthorized: incorrect username or password

dutchakdev avatar Sep 08 '17 09:09 dutchakdev

+1

sonlichao avatar Oct 06 '17 15:10 sonlichao

see @thaJeztah 's comment, he is right, should login with username, not email

DiveInto avatar Oct 08 '17 07:10 DiveInto

Be aware that logging in on the commandline requires your username, not email address

thaJeztah avatar Oct 08 '17 11:10 thaJeztah

Also getting this, trying to download the official mysql container. Login/logout fixes it only once. The next attempt to download an image fails again.

mergederg avatar Oct 08 '17 15:10 mergederg

I had the same problem.. Login failed consistently using cli 'docker login [email protected]' The problem, as a couple people have pointed out is that you should use 'docker login user' without the @domain.com.

I was banging my head on desk over this for several minutes, after repeatedly verifying that the typed credentials worked fine on hub.docker.com

SDShooter avatar Dec 04 '17 22:12 SDShooter

In CLI, your Docker ID is your Docker username, not email. You can login to Docker site with your email and pass, and then from top-right corner, you can get docker ID/Username. Then in CLI, Type the following command: docker login Now login with Docker ID and Password

rijans avatar Dec 05 '17 04:12 rijans

As @edouardr said, you have to log out from your current docker credentials and log in again with the ID and password. After doing that you will be able to pull the images on your device.

emmanuelcu avatar Dec 13 '17 21:12 emmanuelcu

I also got the error here: https://hub.docker.com/r/nexylan/php-dev/builds/bywbpmp7868yeuobdlbnps7/

soullivaneuh avatar Dec 29 '17 18:12 soullivaneuh

annoying

gsagula avatar Jan 13 '18 19:01 gsagula

I also had the same problem, on hum.docker you can login with your email, but, on Docker CLI, you should avoid the @domain.com and use just your user if you want to login.

jdsampayo avatar Feb 06 '18 16:02 jdsampayo

I was running this 'docker pull mysql' and got this error :

Error response from daemon: Get https://registry-1.docker.io/v2/library/mysql/manifests/latest: unauthorized: incorrect username or password

I solved it just running this command "docker logout"

faltdor avatar Feb 12 '18 15:02 faltdor

As @DiveInto and @thaJeztah said, login with username instead of email worked for me! Thank you guys

offerni avatar Mar 19 '18 12:03 offerni

the username is not the same as the first part of your email

like email: [email protected] username: idelfonso123❌ it actually was: idelfonso✅, go to hub.docker.com and see the top right-hand corner

idelfonsog2 avatar Apr 06 '18 23:04 idelfonsog2

Same solution if you are using Docker for Mac and you are logging in via the Docker App in the menubar.

subhashb avatar Apr 30 '18 03:04 subhashb

check you login id and password again, I came across the same issue, it turned out to be the wrong password.

benzhonghai008 avatar May 25 '18 06:05 benzhonghai008

I was facing the same issue where I was able to successfully login to website docker.hub.com, but docker cli login failed with invalid credentials, I found my dockerid/username and when I logged though this in the cli, it worked for me

shuchitaprasad avatar Jun 14 '18 06:06 shuchitaprasad