CLI tool to list tags for Docker images with sensible sorting.
- Works with Docker Hub and other registries, compliant with OCI Distribution Specification.
- Sorts semantic versions with newest first and falls back to alphabetical for non-semver tags.
- Supports authentication via Docker credentials (
~/.docker/config.json). - Can filter tags by regex (
-fflag) and limit the number of tags shown (-nflag).
docker-tags [<registry>/][<namespace>/]<image>— list tags for an image (e.g.,docker-tags alpine).docker-tags -r [<registry>/][<namespace>/]<image>— same, but reverse the order (e.g.,docker-tags -r quay.io/prometheus/prometheus).
- Ensure the Rust toolchain is installed (via
rustup). - Build the binary:
cargo build --release. - The compiled executable will be at
target/release/docker-tags.
This project is licensed under the MIT License - see the LICENSE file for details.