1
votes

I've been trying to push my docker image to Google Container Registry and it is always getting stucked.

gcloud docker push gcr.io/projectID/ImageName

Authentication is OK but it is stucked always

6f9c01afe229: Pushing [>                                                  ] 524.3 kB/62.14 MB

It is not a connection or network problem as I've tried from different networks.


As en alternative I am pushing to a Google Storage bucket and it is working fine:

gcloud docker push b.gcr.io/your-bucket/ImageName

In any case I'd like to use Google Container Registry so please if someone experienced the same issue please share.

1
Was b.gcr.io in your first command a typo? Have you tried just gcr.io?mattmoor
Yes sorry it was just a typo, thanksAlan Wagner

1 Answers

1
votes

Please try just gcr.io.

Generally, projectID is used with gcr.io and bucketName is used with b.gcr.io.

This link has more detailed information about pushing image to gcr: https://cloud.google.com/container-registry/docs/pushing