Docker Community Forums

Share and learn in the Docker community.

Cannot push image to repository in Google Container Engine


(Simonguest) #1

Expected behavior

When using the gloud tool or docker client, I should be able to push an image to the Google Container Registry:

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

Actual behavior

When above command is run, the docker client fails to upload the image to the registry.

Information

The following output is returned from the docker client:

Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
The push refers to a repository [gcr.io/PROJECT_ID/hello-node]
55a757ea36ed: Retrying in 14 seconds
5f70bf18a086: Retrying in 15 seconds
9f7afc4ce40e: Retrying in 14 seconds
828b3885b7b1: Retrying in 14 seconds
5dce5ebb917f: Retrying in 15 seconds
8befcf623ce4: Waiting
3d5a262d6929: Waiting
6eb35183d3b8: Waiting```

Eventually the client times out with an error. The same behavior is also experienced using the docker client directly to login and do the push:

```docker login -p $(gcloud auth print-access-token) -u _token https://gcr.io
docker push gcr.io/PROJECT_ID/hello-node:v1```

### Steps to reproduce the behavior

Follow the first few steps of the Kubernetes/GKE hello world example here: http://kubernetes.io/docs/hellonode

(Simonguest) #2

Problem solved - after speaking with the GKE team, it looks like I was using the project number instead of the project ID.