Docker hello-world:验证错误

我刚刚开始码头工作.我按照这里指定的说明https://docs.docker.com/windows/step_one/

我在Windows 10和Windows上安装了docker(1.10.2)跑坞码头运行你好世界.但是,我正在收到一个身份验证错误,而教程没有提到任何关于它.

这是我收到的消息.

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

我搜索了google&在这里,但找不到类似于此错误消息的任何东西.

谢谢!

最佳答案
当您运行任何其他docker命令时,请首次运行docker登录.

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.

转载注明原文:Docker hello-world:验证错误 - 代码日志