I am trying to push a docker image to eu.gcr.io and I am getting 403 Forbidden
gcloud docker push eu.gcr.io/<projectname>/<image>:latest
The push refers to a repository [eu.gcr.io/<projectname>/<image>] (len: 1)
663cd9de01fe: Preparing
Post https://eu.gcr.io/v2/w<projectname>/<image>/blobs/uploads/: token auth attempt for registry: https://eu.gcr.io/v2/token?account=_token&scope=repository%3A<projectname>%2F<image>3Apush%2Cpull&service=eu.gcr.io request failed with status: 403 Forbidden
I have checked
- curl https://eu.gcr.io/v1/_ping => works
- gcloud config list => project id is setup
- Storage api is enabled in console
- if I use the project name in the url I get 403 Forbidden
- if I use the project id in the url I get "Repository does not exist"
- gcloud auth list => shows the owner as active
- gcloud components update => All components are up to date.