for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

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

Open jfolgado opened this issue 8 years ago • 40 comments

Expected behavior

Actual behavior

Information

  • Full output of the diagnostics from "Diagnose & Feedback" in the menu
  • A reproducible case if this is a bug, Dockerfiles FTW
  • Page URL if this is a docs issue or the name of a man page

Steps to reproduce the behavior

  1. ...
  2. ...

jfolgado avatar Feb 26 '18 00:02 jfolgado

you should fill out the body of the question and not just copy/paste in a template.

but I had a similar problem.. i'm not expert but for me it was that I didn't have internet access. so I connected my wifi, then having done that, I did docker-machine restart. Another thing to do (since yours said incorrect username/password), is to check your username and password are correct, by trying to log into hub.docker.com so you know your user/pass is correct.

gartha1 avatar Feb 26 '18 02:02 gartha1

Try logging back in with the CLI via docker login

cscholze avatar Mar 01 '18 20:03 cscholze

I've run into this issue before too. It happens because the docker client (on macOS at least) allows you to sign in with your email address and password. If you sign out and sign in with your Docker Username and password everything will work. So here's a better description of the issue

Platform/OS Version 17.12.0-ce-mac55(23011)

Description When trying to pull images from the Docker registry docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password. This happens if you sign in to Docker using your email address instead of your username.

Steps to Reproduce

  1. Clean install, or reset preferences for Docker
  2. Sign in to Docker GUI using your email address and password
  3. In the terminal, pull an image from the Docker registry

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

Expected Results Either of these:

  1. The docker client should not allow you to sign in with your email address, only your username
  2. If the client allows you to sign in with your email address, it should still work

StilgarISCA avatar Mar 03 '18 14:03 StilgarISCA

docker login from CLI, docker-compose again, then SUCCESS.

jiangew avatar Mar 09 '18 08:03 jiangew

I had the same issue by login with email, fix it by logout and use the user name other than email to login.

ztou avatar May 13 '18 11:05 ztou

log.0.txt log.txt DebugInfo-2018-05-29_14-53-46.txt

I have the same issue, but restarting and logging out and logging back in is same issue

rsalazar0000 avatar May 30 '18 03:05 rsalazar0000

Also note your username is fully lowercase.

Akkuma avatar Jun 26 '18 17:06 Akkuma

my solution is not email, but username at login docker hub web

clucle avatar Jul 11 '18 09:07 clucle

I have the same issue. I restarted docker and restarted my Mac and it's still show the same error when I run: docker run hello-world on my terminal.

chucklor avatar Jul 14 '18 16:07 chucklor

I have a similar problem. I can log into the websites. I can log into the Docker for Mac application. I CANNOT sign in from CLI.

da-orcl avatar Jul 17 '18 20:07 da-orcl

Same here on Windows 10:

>docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.
See 'docker run --help'.
>docker --version
Docker version 18.03.1-ce, build 9ee9f40

The login is correct and works in GUI app. On the other hand, why it needs any login for public repos?

Workaround:

>docker logout
Removing login credentials for https://index.docker.io/v1/

kenorb avatar Jul 24 '18 23:07 kenorb

same here on mac

➜ ~ docker --version Docker version 18.03.1-ce, build 9ee9f40

andywwright avatar Jul 25 '18 06:07 andywwright

Logging in using just a username (not full email) helped me. Quite an interesting behaviour ...

sysradium avatar Jul 29 '18 22:07 sysradium

Logged in with username instead of email did the trick.

macOS High Sierra 10.13.5 docker --version Docker version 18.06.0-ce, build 0ffa825

rseixas avatar Aug 10 '18 14:08 rseixas

  1. Run the following code in the CLI to confirm docker is installed: docker version
  2. Run the following and use the username you created (not the email) for your docker account as well as the password. If you don't have a docker account go to https://hub.docker.com/: docker login

dbraben avatar Aug 31 '18 08:08 dbraben

I have the same problem, You just need to use your username instead of the mailbox to log in, it's all right.

songxiaoxiao avatar Sep 29 '18 08:09 songxiaoxiao

log out and sign in with the dockerID rather than email and it will work.

besnikbelegu avatar Oct 17 '18 03:10 besnikbelegu

docker logout
docker login

use username not email

sydowma avatar Oct 30 '18 09:10 sydowma

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Jan 28 '19 02:01 docker-robott

This issue occurs when you are logged into docker account. I simply Logged out and pulled the docker image 💯 Worked for mee

ankyjk avatar Jan 29 '19 11:01 ankyjk