我已登录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'.