I'am trying to upload a locally created docker image (graalvm, docker desktop on Mac) to gcp (with a real project id).
I see the following error:
% docker push grc.io/<project>/facility
The push refers to repository [grc.io/<project>/facility]
Get https://grc.io/v2/: Service Unavailable
I set up gcloud auth:
gcloud auth configure-docker
and my .docker/config.json looks like this
{
"experimental" : "disabled",
"credHelpers" : {
"gcr.io" : "gcloud",
"us.gcr.io" : "gcloud",
"eu.gcr.io" : "gcloud"
},
"auths" : {
},
"stackOrchestrator" : "swarm"
}
Running
echo "https://gcr.io" | docker-credential-gcloud get
provides a token.
What is the problem?
-- Update --
When I run this (works)
gcloud container images list --repository=gcr.io/<project-id> --log-http
it is talking to https://gcr.io/v2/token?... and the docker-credential-gcloud above is talking to https://oauth2.googleapis.com/token.