docker注册表身份验证所需的错误

时间:2020-10-08 03:07:52

标签: docker google-chrome authentication get docker-registry

我已登录Docker Hub并尝试访问浏览器https://registry-1.docker.io/v2/library/alpine/manifests/latest中的URL,这使我陷入错误,不确定发生了什么。

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/alpine","Action":"pull"}]}]}

除了登录集线器之外,我还需要做其他事情才能获得公开的图像吗?

对于完整的上下文,我在Windows命令提示符下运行了以下命令

docker run --rm alpine sh -c 'apk add --no-cache -q wget && ls -la /usr/bin/wget'
Unable to find image 'alpine:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/alpine/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Falpine%3Apull&service=registry.docker.io: AuthenticationRequired.
See 'docker run --help'.

0 个答案:

没有答案