Can't push docker image to gcloud

5/20/2016

I'm following the hello node Kubernetes tutorial but when I get to the step of pushing my machine to google cloud with the command:

gcloud docker push gcr.io/PROJECT_ID/hello-node:v1

I get the following error message:

name invalid: Invalid repository name: gcr.io/PROJECT_ID/hello-node

(Just do avoid double-checks, I replaced my PROJECT_ID with the actual number of the projecg)

I was able to push my image to a bucket, and run, but then my image doesn't show in Container Engine > Container Registry.

How can this be fixed?

-- Migore
docker
gcloud
kubernetes

1 Answer

5/20/2016

You should replace PROJECT_ID with the alphanumeric ID of your project (e.g. "my-project-123").

-- CJ Cullen
Source: StackOverflow