Docker hello-world:身份验证错误 [英] Docker hello-world: authentication error

查看:93
本文介绍了Docker hello-world:身份验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用docker。我正在按照此处 https://docs.docker.com/windows/step_one/

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

我在Windows 10和更高版本上安装了docker(1.10.2)运行 docker run hello-world 。但是,当本教程未提及任何内容时,我遇到了身份验证错误。

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.

这是我收到的消息。

$ 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&在这里,但找不到与此错误消息类似的东西。

I searched google & here, but couldn't find anything similar to this error message.

谢谢!

推荐答案

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

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


您可以登录具有凭据的任何公共或私有存储库。登录时,该命令将编码的凭据存储在Linux上的 $ HOME / .docker / config.json %USERPROFILE%/。docker / config中.json 在Windows上。

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:身份验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆