Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用服务帐户对实用程序进行身份验证gcloud。我正在尝试使用以下命令推送 docker 映像: gcloud docker -- push eu.gcr.io/abcxyz/example:latest
gcloud
gcloud docker -- push eu.gcr.io/abcxyz/example:latest
但得到一个错误:
denied: Unable to create the repository, please check that you have access to do so.
我需要启用什么权限?
在 GCP 的 IAM & Admin 部分,您需要将storage.admin和/或storage.object.admin角色添加到您的服务帐户。这在此处的文档中有详细说明。
storage.admin
storage.object.admin