Skip to content
Software capabilities
Google Artifact Registry

List Docker image metadata in Google Artifact Registry

List image digests, tags, and update metadata in one repository without downloading image content.

Documentation reviewed · 2 methods with sources

Ways to do it

  1. API: GET /v1/{parent}/dockerImages
  2. CLI: gcloud artifacts docker images list
API

GET /v1/{parent}/dockerImages

List Docker images under a repository with pageSize, pageToken, and orderBy.

Read source: GET /v1/{parent}/dockerImages reference
Requirements
Artifact Registry API enabled, an OAuth token with artifactregistry.dockerImages.list, and a repository resource name.
Limitations
Maximum API pageSize is 1,000. Follow nextPageToken and keep parent and ordering stable between requests.

Example shell

curl --fail -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" "https://artifactregistry.googleapis.com/v1/projects/$PROJECT/locations/$LOCATION/repositories/$REPOSITORY/dockerImages?pageSize=100"
CLI

gcloud artifacts docker images list

List the same repository through gcloud and optionally include up to 100 tags per image digest.

Read source: gcloud artifacts docker images list reference
Requirements
Google Cloud CLI, an authenticated account, Artifact Registry Reader access, and an image path such as LOCATION-docker.pkg.dev/PROJECT/REPOSITORY.
Limitations
--limit bounds output, while --page-size controls service pages. --include-tags has a maximum of 100 tags per version.

Example shell

gcloud artifacts docker images list "$LOCATION-docker.pkg.dev/$PROJECT/$REPOSITORY" --include-tags --limit=100 --format=json