Search code examples
gcloudgoogle-kubernetes-engine

How do I list images and tags in google container registry


Looking for a way to use the gcloud commandline to get the tags of container engine registry images.

this command cloud docker search gcr.io/PROJECT/myimage returns NAME DESCRIPTION STARS OFFICIAL AUTOMATED PROJECT/myimage 0 but i want to see the tags used so far like the gcloud web console shows.

enter image description here

the machine I run this command on pulls images from docker hub, tags them, then pushes them to google container engine with gcloud docker push...

I suspect I may be asking how to make the local docker client do commands against both google repo and docker hub repo so I can get docker images listings

****** UPDATE: see https://stackoverflow.com/a/38061253/201911 for this capability in the latest release.


Solution

  • gcloud container images list-tags gcr.io/PROJECT/myimage https://cloud.google.com/sdk/gcloud/reference/container/images/list-tags