Docker hello-world: authentication error

Vishwa picture Vishwa · Feb 26, 2016 · Viewed 48.2k times · Source

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!

Answer

BMW picture BMW · Feb 26, 2016

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.