Quay との間でイメージをプッシュまたはプルするときに、unauthorized: access to the requested resource is not authorized エラーが発生する
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.