Error 403 - Forbidden when pushing to container registry

3,742 views
Skip to first unread message

Jan Vladimir Mostert

unread,
Feb 27, 2016, 3:40:29 AM2/27/16
to kubernetes-dev
I'm following the instructions on how to make use of the docker registry on: https://cloud.google.com/container-registry/docs/ 

gcloud auth login
gcloud config set project my-project

docker tag mycee/das-ui eu.gcr.io/my-project/das-ui

When I'm doing
gcloud docker push eu.gcr.io/my-project/das-ui

I'm getting the following error:

The push refers to a repository [eu.gcr.io/my-project/das-ui] (len: 1)

26bfb51c58a5: Image push failed 

Head https://eu.gcr.io/v2/my-project/das-ui/blobs/sha256:a3ed95_____________.....____________________6d4: token auth attempt for registry: https://eu.gcr.io/v2/token?account=_token&scope=repository%3Amy-project%2Fdas-ui%3Apush%2Cpull&service=eu.gcr.io request failed with status: 403 Forbidden


running docker images, I can see my tag sitting there:

eu.gcr.io/my-project/das-ui   latest              26bfb51c58a5        4 days ago          209.8 MB



Any idea what I'm missing?



Robert Bailey

unread,
Feb 27, 2016, 1:45:22 PM2/27/16
to Jan Vladimir Mostert, kubernetes-dev, gcr-c...@google.com
+cc  gcr-contact@google.com

--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/f9fae39f-7777-4241-b40a-721951777df5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jan Vladimir Mostert

unread,
Mar 6, 2016, 3:52:30 AM3/6/16
to kubernetes-dev, jan.m...@gmail.com, gcr-c...@google.com
Problem resolved, Google Cloud Console was showing the wrong project ID which I was using.
After switching to the right project ID, everything started to work.
Reply all
Reply to author
Forward
0 new messages