List and analyze available tags for a container image repository
Lists and analyzes available tags for a container image repository with detailed metadata and recommendations.
/plugin marketplace add openshift-eng/ai-helpers/plugin install origin@ai-helpers<repository>container-image:tags
/container-image:tags <repository>
The container-image:tags command lists and analyzes all available tags for a container image repository. It provides detailed information about each tag including creation date, size, architecture support, and digest.
This command helps you:
The command works with any OCI-compliant registry and can filter, sort, and analyze tags based on various criteria.
Required Tools:
which skopeosudo dnf install skopeosudo apt-get install skopeobrew install skopeoRegistry Authentication:
For private registries:
skopeo login registry.example.com
The command performs the following analysis:
Check Tool Availability:
skopeo is installedList All Tags:
skopeo list-tags docker://<repository>
This returns all available tags for the repository.
Inspect Each Tag (for detailed analysis): For each tag (or a sample of tags for large repositories):
skopeo inspect docker://<repository>:<tag>
Extract:
Categorize Tags:
latest, stable, productionSort and Filter:
v4.* tags)Identify Key Tags:
latest tagPresent Organized Analysis:
The command outputs a structured tag listing:
================================================================================
CONTAINER IMAGE TAGS
================================================================================
Repository: quay.io/openshift-release-dev/ocp-release
Total Tags: 487
TAG SUMMARY:
Version Tags: 312 (e.g., 4.17.0, 4.16.1)
Date Tags: 150 (e.g., 2024-01-15)
Latest Tags: 3 (latest, stable, production)
Other Tags: 22
RECENT TAGS (Last 30 days):
--------------------------------------------------------------------------------
TAG CREATED SIZE ARCH DIGEST
4.17.0 2024-01-15 10:30 1.2 GB multi sha256:abc123...
4.17.0-rc.1 2024-01-10 08:15 1.2 GB multi sha256:def456...
4.16.2 2024-01-08 14:22 1.1 GB multi sha256:ghi789...
latest 2024-01-15 10:30 1.2 GB multi sha256:abc123...
stable 2024-01-08 14:22 1.1 GB multi sha256:ghi789...
VERSION TAGS (Semantic):
--------------------------------------------------------------------------------
4.17.0 2024-01-15 1.2 GB multi sha256:abc123... [LATEST]
4.17.0-rc.1 2024-01-10 1.2 GB multi sha256:def456...
4.16.2 2024-01-08 1.1 GB multi sha256:ghi789...
4.16.1 2023-12-20 1.1 GB multi sha256:jkl012...
4.16.0 2023-12-01 1.1 GB multi sha256:mno345...
4.15.18 2023-11-28 1.0 GB multi sha256:pqr678...
...
SPECIAL TAGS:
--------------------------------------------------------------------------------
latest → 4.17.0 (sha256:abc123...)
stable → 4.16.2 (sha256:ghi789...)
lts → 4.15.18 (sha256:pqr678...)
ARCHITECTURE SUPPORT:
Multi-arch tags: 465 (linux/amd64, linux/arm64, linux/ppc64le, linux/s390x)
Single-arch: 22 (linux/amd64 only)
DUPLICATE TAGS (same image, multiple tags):
4.17.0 = latest = 2024-01-15 (sha256:abc123...)
4.16.2 = stable (sha256:ghi789...)
TAG PATTERNS:
• Semantic versioning (4.x.y)
• Release candidates (-rc.x)
• Date-based snapshots (YYYY-MM-DD)
• Architecture-specific suffixes (-amd64, -arm64)
RECOMMENDATIONS:
• For production: Use stable (4.16.2) or specific version tag
• For testing: Use latest (4.17.0)
• For LTS: Use lts (4.15.18)
• Avoid: Using generic tags like 'latest' in production
• Pin by digest: Use @sha256:abc123... for reproducibility
NOTABLE:
• 3 tags updated in the last 7 days
• 15 release candidates available
• Average tag age: 45 days
• Update frequency: ~2 tags per week
================================================================================
For Small Repositories:
================================================================================
CONTAINER IMAGE TAGS
================================================================================
Repository: docker.io/library/alpine
Total Tags: 47
ALL TAGS:
--------------------------------------------------------------------------------
TAG CREATED SIZE ARCH DIGEST
latest 2024-01-20 12:00 7.3 MB multi sha256:abc123...
3.19 2024-01-20 12:00 7.3 MB multi sha256:abc123...
3.18 2023-11-15 09:30 7.0 MB multi sha256:def456...
3.17 2023-08-10 14:15 6.8 MB multi sha256:ghi789...
edge 2024-01-22 08:00 7.5 MB multi sha256:jkl012...
...
RECOMMENDATIONS:
• For production: Use 3.19 (latest stable)
• For edge features: Use edge
• For compatibility: Use 3.18 or 3.17
================================================================================
List tags for OpenShift release images:
/container-image:tags quay.io/openshift-release-dev/ocp-release
Shows all available OpenShift release versions.
Check available UBI tags:
/container-image:tags registry.redhat.io/ubi9/ubi
Lists all UBI 9 image tags.
Explore nginx versions:
/container-image:tags docker.io/library/nginx
Shows available nginx versions and variants.
Check private repository tags:
/container-image:tags registry.example.com/myorg/myapp
Lists tags from a private registry (requires authentication).
Analyze Prometheus tags:
/container-image:tags quay.io/prometheus/prometheus
Shows Prometheus versions and release patterns.
The command can support optional filters and sorting:
Filter by Pattern:
/container-image:tags quay.io/openshift-release-dev/ocp-release --filter "4.17.*"
Shows only 4.17.x tags.
Limit Results:
/container-image:tags docker.io/library/alpine --limit 10
Shows only the 10 most recent tags.
Sort Options:
/container-image:tags quay.io/myapp --sort version # Semantic version sort
/container-image:tags quay.io/myapp --sort date # Creation date sort
/container-image:tags quay.io/myapp --sort size # Size sort
Architecture Filter:
/container-image:tags registry.example.com/myapp --arch arm64
Shows only tags that support arm64.
skopeo loginskopeoFor repositories with many tags:
--full flag[registry/]repositoryquay.io/openshift-release-dev/ocp-releasedocker.io/library/nginxregistry.redhat.io/ubi9/ubiregistry.example.com/myorg/myappNote: Do NOT include the tag (:tagname) in the repository argument.