Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve a list of all container's images registered in Container Engine Registry

I'm trying to retrieve a list of all container's images registered in Container Engine Registry. The command that should do the job "gcloud docker images" brings me only local images. In spite of this "gcloud docker pull gcr.io/myproject/myname:tag" works as expected.

Also, I have used a search API but it retrieves me names of images without their tags:

gcloud docker search gcr.io/[myproject]

Has somebody an experience with it?

Installed stuff:

Google Cloud SDK 99.0.0
  • alpha 2016.01.12
  • beta 2016.01.12
  • bq 2.0.18
  • bq-nix 2.0.18
  • core 2016.02.26
  • core-nix 2016.02.05
  • gcd-emulator v1beta3-1.0.0
  • gcloud
  • gsutil 4.17
  • gsutil-nix 4.15
  • kubectl
  • kubectl-linux-x86_64 1.1.7
like image 848
worroc Avatar asked Nov 30 '25 16:11

worroc


1 Answers

You can use following command to get list of all the repositories in your GCP project

gcloud container images list --repository=HOST/PROJECT-ID

Here HOST would be gcr.io / us.gcr.io / eu.gcr.io etc based on your repo location

If you want to get list of all the versions of images in specific repository you can use list-tags command.

gcloud container images list-tags HOST/project-id/REPONAME
like image 193
Sudev G Avatar answered Dec 09 '25 00:12

Sudev G



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!