未授权:在将镜像推送或拉取到 Quay 时,未授权对请求的资源的访问
Issue
- 在成功登录到 Quay Enterprise 或 Quay.io 后无法推送或拉取容器镜像,遇到以下错误消息:
# docker push quay.example.com/username/hello-world
The push refers to a repository [quay.example.com/user/hello-world]
5f345c98fcb2: Waiting
ff986b10a018: Waiting
unauthorized: access to the requested resource is not authorized
- 登录到 Quay 失败,并显示以下错误
# docker login -u quay https://{quayhostname}
Password:
Error response from daemon: Get https://{quayhostname}/v1/users/: EOF
- 在 OCP 4.3 中安装 Quay Operator 时,注意到所有 pod 都创建了,除了 Quay pod 。 Pod 描述抛出以下错误:
Normal Pulling 21s (x4 over 109s) kubelet, ip-example1.us-east-2.compute.internal Pulling image "quay.io/redhat/quay:v3.2.0"
Warning Failed 21s (x4 over 109s) kubelet, ip-example1.us-east-2.compute.internal Failed to pull image "quay.io/redhat/quay:v3.2.0": rpc error: code = Unknown desc = Error reading manifest v3.2.0 in quay.io/redhat/quay: unauthorized: access to the requested resource is not authorized
Warning Failed 21s (x4 over 109s) kubelet, ip-example1.us-east-2.compute.internal Error: ErrImagePull
Warning Failed 9s (x7 over 108s) kubelet, ip-example1.us-east-2.compute.internal Error: ImagePullBackOff
Environment
- Red Hat Quay
- 3.2.0
- 2.9.4
- Quay.io
- Red Hat Enterprise Linux 7.x
- OpenShift Container Platform (OCP) 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.