Docker hello-world:validation错误

我刚刚开始与docker工人。 我正在按照此处指定的说明https://docs.docker.com/windows/step_one/

我在Windows 10上安装了Docker(1.10.2)并运行docker run hello-world 。 但是,我得到一个authentication错误,而教程没有提到任何有关它。

这是我收到的信息。

 $ 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'. 

我search谷歌&在这里,但找不到类似于这个错误信息。

谢谢!

运行任何其他docker命令时,请在第一次运行docker login

您可以login到您拥有凭据的任何公用或专用存储库。 login时,命令将编码的凭证存储在Linux上的$HOME/.docker/config.json ,或在Windows上存储%USERPROFILE%/.docker/config.json $HOME/.docker/config.json

如果您之前通过控制台或kitematiclogin,可能会发生这种情况。

你可以尝试docker logout如果你想使用docker没有身份validation。

在这种情况下, Authentication is required:不应该再次出现。

给我的船上的任何其他人的一个说明这个错误。 我正在跟随从docker的教程,并有这个错误。 “修复”只是重新运行命令,它运行的形象。 我在%USERPROFILE%/.docker/config.json

运行此命令也是如此:

 # docker build -t friendlyhello . Sending build context to Docker daemon 5.12kB Step 1/7 : FROM python:2.7-slim Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 

我第二天就跑了,它工作。