--format支持的关键字 table 显示为表格形式,包括标题 .ID Image ID .CreatedSince Elapsed time since the image was created if --human=true, otherwise timestamp of when image was created .CreatedAt Timestamp of when image was created .CreatedBy Command that was used to create the image .Size Image disk size .Comment Comment for image
注意
无
示例
1 2 3
$ docker history ubuntu $ docker history nginx:1.20.1 $ docker history --format "{{.ID}}, {{.CreatedSince}}, {{.Size}}" busybox