![](/img/trans.png)
[英]Authenticate Google Compute Engine (GCE) to Pull Image from Google Container Registry (GCR)
[英]GCP - Not able to Push docker image from Compute Engine to Container Registry
我无法将 docker 个图像从 Compute Engine VM 推送到 Container registry。 我已将凭据添加到服务帐户,但我仍然得到:
未经授权:您没有执行此操作所需的权限,并且您的凭据可能无效。 要验证您的请求,请按照以下步骤操作: https://cloud.google.com/container-registry/docs/advanced-authentication
您的服务帐户应该在 GCR 的存储桶上具有 roles/storage.legacyBucketWriter 角色(gcr.io 的 artifacts.PROJECT-ID.appspot.com)。 更多文档在这里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.