REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 3db8720ecbf5 3 weeks ago 77.9MB
ubuntu 18.04 f9a80a55f492 9 months ago 63.2MB
hello-world latest d2c94e258dcb 10 months ago 13.3kB
ubuntu 14.0413b66b487594 2 years ago 197MB
[root@hmm ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 3db8720ecbf5 3 weeks ago 77.9MB
ubuntu 18.04 f9a80a55f492 9 months ago 63.2MB
hello-world latest d2c94e258dcb 10 months ago 13.3kB
ubuntu 14.0413b66b487594 2 years ago 197M
其他
[root@hmm ~]docker images -h
Usage: docker images [OPTIONS] [REPOSITORY[:TAG]] # 使用语法
List images
Aliases: # 关联的命令
docker image ls, docker image list, docker images # 这三个命令效果等效
Options:
-a, --all Show all images (default hides intermediate images)
# 显示所有镜像(默认会隐藏中间镜像)
--digests Show digests # 显示镜像摘要值
-f, --filter filter Filter output based on conditions provided # 筛选镜像--format string Format output using a custom template: # 格式化输出'table': Print outputintableformat
with column headers (default)
'table TEMPLATE': Print outputintableformat
using the given Go template
'json': Print in JSON format'TEMPLATE': Print output using the given
Go template.
Refer to https://docs.docker.com/go/formatting/
for more information about formatting output with
templates
--no-trunc Don't truncate output # 不截断输出
-q, --quiet Only show image IDs # 只显示镜像ID
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具