Linux command
docker-images 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all images
docker images
List with digests
docker images --digests
List only image IDs
docker images -q
Filter by repository
docker images [repository]
Show dangling images
docker images -f dangling=true
说明
docker images lists images stored on the local system. Shorthand for docker image ls. Shows repository, tag, image ID, creation time, and size. Images are the templates from which containers are created, containing the filesystem and configuration needed to run an application.
参数
- -a, --all
- Show all images (including intermediate layers).
- -q, --quiet
- Only show image IDs.
- --digests
- Show digests.
- -f, --filter _filter_
- Filter output.
- --format _string_
- Format output using Go template.
- --no-trunc
- Don't truncate output.
FAQ
What is the docker-images command used for?
docker images lists images stored on the local system. Shorthand for docker image ls. Shows repository, tag, image ID, creation time, and size. Images are the templates from which containers are created, containing the filesystem and configuration needed to run an application.
How do I run a basic docker-images example?
Run `docker images` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in docker-images?
Show all images (including intermediate layers).