Inventory repository tags, IDs, sizes, and immutable digests
Build a paste-ready command, then review its compatibility and effects before running it.
docker image ls --digests --format '{{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.Digest}}'read-onlyno known side effects Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-19
Requirementsdockerdocker must be installed and available on PATH.
Version supportdocker Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsregistry.example.com/api:2026.07 8fc2b31a9dce 284MB sha256:91d6…be32Representative successful output; values vary with the selected target and system state.
Known errorsdocker: command not founddocker is missing or is not available on PATH.
Verifydocker image ls --digests --format '{{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.Digest}}'The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01dockerCommandRuns the docker stage of this one-liner.
02imageArgumentPasses image to docker.
03lsArgumentPasses ls to docker.
04--digestsOptionConfigures docker with the --digests option.
05--formatOptionFormats each result using the supplied template.
06'{{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.Digest}}'ArgumentPasses '{{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.Digest}}' to docker.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
docker image ls --digests --format '{{.Repository}}:{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.Digest}}'
Example output
registry.example.com/api:2026.07 8fc2b31a9dce 284MB sha256:91d6…be32
postgres:16 f4c98ab12a0d 431MB sha256:4b2c…9aa1
Illustrative output — exact values vary by system and data.
Official sources