Search code examples
google-cloud-platformgoogle-cloud-iam

What permission do I need on a service account to allow pushing docker images to the container registry?


I'm using a service account to authenticate with the gcloud utillity. I'm trying to push a docker image with the command of: gcloud docker -- push eu.gcr.io/abcxyz/example:latest

but get an error of:

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

What permission do I need to enable?


Solution

  • In the IAM & Admin section of GCP you'll need to add the storage.admin and/or storage.object.admin roles to your service account. This is detailed in the documentation here.

    IAM & Admin

    enter image description here