docker images命令-列出image
Posted by simapple on 2014-08-10
images 列出image的作用
The default docker images
显示images的一些基础信息
Listing the most recently created images
Listing the full length image IDs
Filtering 过滤
The filtering flag (-f
or --filter
) format is of "key=value". If there are more than one filter, then pass multiple flags (e.g., --filter "foo=bar" --filter "bif=baz"
)
Current filters: * dangling (boolean - true or false)
untagged images
This will display untagged images, that are the leaves of the images tree (not intermediary layers). These images occur when a new build of an image takes the repo:tag away from the IMAGE ID, leaving it untagged. A warning will be issued if trying to remove an image when a container is presently using it. By having this flag it allows for batch cleanup.
Ready for use by docker rmi ...
, like:
NOTE: Docker will warn you if any containers exist that are using these untagged images.