Rakesh
Rakesh

Reputation: 281

How get list of images using kubernetes API?

I'm trying to read Images using the kubernetes API, but am not seeing an API for that. Is there an API to Read Images List from my google cloud account?

Upvotes: 2

Views: 1726

Answers (1)

CJ Cullen
CJ Cullen

Reputation: 5662

To list all images in your gcr.io private registry, you can use the docker search command, pointing at your registry, using your Google credentials:

gcloud docker search gcr.io/your-registry

Or in two steps, configuring docker to use your Google credentials:

gcloud docker -a
docker search gcr.io/your-registry

Upvotes: 4

Related Questions