Docker Community Forums

Share and learn in the Docker community.

Docker run hello-world error

docker

(Vishwa) #1

Hi,

I’m just getting started with docker. I’m following the instructions specified here https://docs.docker.com/windows/step_one/

I installed docker (1.10.2) on windows 10 & ran docker run hello-world . But, I’m getting an authentication error while the tutorial doesn’t mentioned anything about it.

Here’s the message I received.

$ docker run hello-world Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Authentication is required: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password. See 'C:\Program Files\Docker Toolbox\docker.exe run --help'.

I searched google & SO but couldn’t find anything exactly similar to this.

Thanks!


(Vishwa) #2

For anyone looking for the answer,

http://stackoverflow.com/questions/35644329/docker-hello-world-authentication-error


(Eddyafful) #3

Try this:

  1. Open up shell in administrator mode
  2. Enter docker login
  3. Enter Docker ID & Password.
    4.Execute docker info
  4. Execute docker run hello-world.

This should work when you have already created Ducker ID. Get it here=>> https://cloud.docker.com/


(Mujongo) #4

I had the same problem. It turns out that the CLI (docker login) needs your USERNAME (not e-mail address), even though the e-mail address works for the docker web site or desktop UI.


#5

In Mac book Terminal, Enter “docker login” and then enter the docker ID not the email ID that you will use generally for login.
and then enter the password it will work.


(Mike DK) #6

great answer, works for me, Thanks!!