Created
February 20, 2026 21:08
-
-
Save cristobal/78db623c4710958292ebf69398f513e9 to your computer and use it in GitHub Desktop.
Podman Manifest Table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # | |
| # podman-manifest-table - List platform digests from a multi-arch container image | |
| # | |
| # Usage: podman-manifest-table <image> | |
| # podman-manifest-table -h|--help | |
| # | |
| # Example: podman-manifest-table node:24.13.1-alpine3.23 | |
| if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then | |
| echo "Usage: podman-manifest-table <image>" | |
| echo "" | |
| echo "List platform digests from a multi-arch container image manifest." | |
| echo "Requires: podman, jq" | |
| exit 0 | |
| fi | |
| if [ -z "$1" ]; then | |
| echo "Error: image required" | |
| echo "Usage: podman-manifest-table <image>" | |
| exit 1 | |
| fi | |
| printf "%-10s %-7s %-5s %s\n" "ARCH" "OS" "VARIANT" "DIGEST" | |
| podman manifest inspect "$1" | jq -r '.manifests[] | select(.platform.architecture != "unknown") | | |
| "\(.platform.architecture // "unknown") \(.platform.os // "unknown") \(.platform.variant // "-") \(.digest)"' | while read arch os variant digest; do | |
| printf "%-10s %-7s %-5s %s\n" "$arch" "$os" "$variant" "$digest" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment