小编THa*_*wke的帖子

Google Cloud 容器注册表/工件注册表权限

我正在尝试使用 Google Cloud SDK 将容器推送到 Windows 10 上的 Google Cloud 容器注册表或 Google Cloud Artifact 注册表。我从这两个服务中收到类似的权限错误,但我似乎无法弄清楚原因。对于容器注册表,在推送时我得到:

> docker push us.gcr.io/{PROJECT}/{PATH}/{CONTAINER}:{TAG}
unauthorized: You don't have the needed permissions to perform this operation, 
and you may have invalid credentials. To authenticate your request, follow the 
steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
Run Code Online (Sandbox Code Playgroud)

对于工件注册表,在推送时我得到:

> docker push northamerica-northeast1-docker.pkg.dev/{PROJECT}/{REPOSITORY}/{CONTAINER}:{TAG}
denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource 
"projects/opallabs/locations/northamerica-northeast1/repositories/domar" (or it may not exist)
Run Code Online (Sandbox Code Playgroud)

我跑过gcloud init几次gcloud auth configure-dockergcloud我可以毫无问题地从命令行创建和编辑 Google Cloud 资源。我是 Google Cloud 项目的所有者,但为了安全起见,我为自己分配了存储管理员、Artifact 注册表管理员、Artifact 注册表存储库管理员。但是,当我 …

docker google-cloud-platform google-container-registry

9
推荐指数
2
解决办法
2万
查看次数