Skip to main content

container-registry-cli

Container image registry analyzer with cleanup policies and vulnerability scanning.

Scan container registries, identify cleanup candidates based on tag policies, and audit images for security vulnerabilities — all from YAML manifests.

Features

  • Registry Scanning — Parse image manifests with tags, layers, and vulnerability data
  • Cleanup Policy Engine — Evaluate images against configurable retention rules
  • Security Auditing — 10 rules (REG-001 to REG-010) for image security
  • Multi-Registry Support — ACR, ECR, GCR, Docker Hub, GHCR detection
  • Rich Terminal Output — Color-coded tables with severity indicators
  • CI/CD Integration — --fail-on flag for pipeline security gates

Installation

pip install -e .

Quick Start

container-registry-cli demo
container-registry-cli scan demo-registry/registry-manifest.yaml
container-registry-cli cleanup demo-registry/registry-manifest.yaml -p demo-registry/cleanup-policy.yaml
container-registry-cli audit demo-registry/registry-manifest.yaml --fail-on critical
container-registry-cli rules

Security Rules

Rule Description
REG-001 Critical vulnerabilities found
REG-002 High vulns with available fixes
REG-003 Deprecated base image
REG-004 No vulnerability scan data
REG-005 Running as root
REG-006 Excessive layers (>15)
REG-007 Image size exceeds threshold
REG-008 Untagged manifests
REG-009 Latest tag in production
REG-010 Stale tags (>180 days)

Testing

python -m pytest tests/ -v

License

MIT

Metadata

Release files for container-registry-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for container-registry-cli 1.0.0
File Size Uploaded Provenance
container_registry_cli-1.0.0.tar.gz 15.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for container-registry-cli 1.0.0
File Interpreter ABI Platform
container_registry_cli-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.8 kB

Release files / container_registry_cli-1.0.0.tar.gz

Download URL container_registry_cli-1.0.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7773f0256297260a4ca5aa80784646eaae1221b639e49011842f9d470722fdc
BLAKE2b-256 checksum
How to use checksums
fdf5217727f801cdfdaaac44893aa91b1d72c01306bc2730aa6fca95bb27ed40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Release files / container_registry_cli-1.0.0-py3-none-any.whl

Download URL container_registry_cli-1.0.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1050f697dc5df7963a7fd825dfd1b527e42cad51ab815e19aa5a290b19a29f2f
BLAKE2b-256 checksum
How to use checksums
cc97b46b6c1be0b6a637f73c7a8a1c62be531a80994ce4388dbd6d5dda502122
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Security for container-registry-cli 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page