-1

我正在使用服务帐户对实用程序进行身份验证gcloud。我正在尝试使用以下命令推送 docker 映像: gcloud docker -- push eu.gcr.io/abcxyz/example:latest

但得到一个错误:

denied: Unable to create the repository, please check that you have access to do so.

我需要启用什么权限?

4

1 回答 1

1

在 GCP 的 IAM & Admin 部分,您需要将storage.admin和/或storage.object.admin角色添加到您的服务帐户。这在此处的文档中有详细说明。

IAM 和管理员

在此处输入图像描述

于 2017-08-04T17:05:02.990 回答