How get list of images using kubernetes API?

1/7/2016

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?

-- Rakesh Jain
docker-image
google-container-registry
kubernetes

1 Answer

1/7/2016

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
-- CJ Cullen
Source: StackOverflow