Linux command
podman-images 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all images
podman images
List with digests
podman images --digests
Filter images
podman images --filter reference=[nginx*]
Show image IDs only
podman images -q
Show all images
podman images -a
Custom output format
podman images --format "{{.Repository}}:{{.Tag}} {{.Size}}"
List dangling
podman images --filter dangling=true
说明
podman images lists container images stored locally. It shows repository, tag, image ID, creation date, and size for each image.
参数
- -a, --all
- Show all images including intermediate image layers.
- --digests
- Show image digests.
- -f, --filter _filter_
- Filter output based on conditions (key=value or key!=value).
- --format _format_
- Change output format using Go templates or 'json'.
- --history
- Display the history of image names (useful when images are re-tagged or untagged).
- -n, --noheading
- Omit the table header from the output.
- --no-trunc
- Do not truncate output (show full image IDs).
- -q, --quiet
- Only display image IDs.
- --sort _field_
- Sort by: created, id, repository, size, or tag (default: created).
FAQ
What is the podman-images command used for?
podman images lists container images stored locally. It shows repository, tag, image ID, creation date, and size for each image.
How do I run a basic podman-images example?
Run `podman images` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in podman-images?
Show all images including intermediate image layers.