Listing Docker Images using Google Artifact Registry Python Client

49 Views Asked by At

I'm trying to list the docker images in a particular repo using the google artifact registry Python client.

Is there any way to list only the names of unique images in a repo? The list_docker_images function lists all versions of all images from a particular repo.

Maybe the metadata parameter is a potential solution?

Also, is it possible to list images from a virual docker repo, so that it will list images from the upstream repos?

1

There are 1 best solutions below

0
James On

You can use listPackages to get a list of artifacts without per-version information. This is not docker specific and will work for all Artifact Registry formats.