Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker hello-world: authentication error

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 & here, but couldn't find anything similar to this error message.

Thanks!

like image 880
Vishwa Avatar asked Feb 26 '16 05:02

Vishwa


1 Answers

Please run docker login at first time when you run any other docker commands.

You can log into any public or private repository for which you have credentials. When you log in, the command stores encoded credentials in $HOME/.docker/config.json on Linux or%USERPROFILE%/.docker/config.json on Windows.

like image 148
BMW Avatar answered Oct 07 '22 16:10

BMW