.nh .TH podman\-history(1) .SH NAME .PP podman\-history \- Show the history of an image .SH SYNOPSIS .PP \fBpodman history\fP [\fIoptions\fP] \fIimage\fP[:\fItag\fP|@\fIdigest\fP] .PP \fBpodman image history\fP [\fIoptions\fP] \fIimage\fP[:\fItag\fP|@\fIdigest\fP] .SH DESCRIPTION .PP \fBpodman history\fP displays the history of an image by printing out information about each layer used in the image. The information printed out for each layer include Created (time and date), Created By, Size, and Comment. The output can be truncated or not using the \fB\-\-no\-trunc\fP flag. If the \fB\-\-human\fP flag is set, the time of creation and size are printed out in a human readable format. The \fB\-\-quiet\fP flag displays the ID of the image only when set and the \fB\-\-format\fP flag is used to print the information using the Go template provided by the user. .PP Valid placeholders for the Go template are listed below: .TS allbox; l l l l . \fB\fC\fBPlaceholder\fP\fR \fB\fC\fBDescription\fP\fR \&.ID Image ID \&.Created T{ if \-\-human, time elapsed since creation, otherwise time stamp of creation T} \&.CreatedBy T{ Command used to create the layer T} \&.Size Size of layer on disk \&.Comment Comment for the layer .TE .SH OPTIONS .SS \fB\-\-human\fP, \fB\-H\fP=\fItrue|false\fP .PP Display sizes and dates in human readable format (default \fItrue\fP). .SS \fB\-\-no\-trunc\fP=\fItrue|false\fP .PP Do not truncate the output (default \fIfalse\fP). .SS \fB\-\-notruncate\fP .PP Do not truncate the output .SS \fB\-\-quiet\fP, \fB\-q\fP=\fItrue|false\fP .PP Print the numeric IDs only (default \fIfalse\fP). .SS \fB\-\-format\fP=\fIformat\fP .PP Alter the output for a format like 'json' or a Go template. .SS \fB\-\-help\fP, \fB\-h\fP .PP Print usage statement .SH EXAMPLES .PP .RS .nf $ podman history debian ID CREATED CREATED BY SIZE COMMENT b676ca55e4f2c 9 weeks ago /bin/sh \-c #(nop) CMD ["bash"] 0 B 9 weeks ago /bin/sh \-c #(nop) ADD file:ebba725fb97cea4... 45.14 MB .fi .RE .PP .RS .nf $ podman history \-\-no\-trunc=true \-\-human=false debian ID CREATED CREATED BY SIZE COMMENT b676ca55e4f2c 2017\-07\-24T16:52:55Z /bin/sh \-c #(nop) CMD ["bash"] 0 2017\-07\-24T16:52:54Z /bin/sh \-c #(nop) ADD file:ebba725fb97cea4... 45142935 .fi .RE .PP .RS .nf $ podman history \-\-format "{{.ID}} {{.Created}}" debian b676ca55e4f2c 9 weeks ago 9 weeks ago .fi .RE .PP .RS .nf $ podman history \-\-format json debian [ { "id": "b676ca55e4f2c0ce53d0636438c5372d3efeb5ae99b676fa5a5d1581bad46060", "created": "2017\-07\-24T16:52:55.195062314Z", "createdBy": "/bin/sh \-c #(nop) CMD [\\"bash\\"]", "size": 0, "comment": "" }, { "id": "b676ca55e4f2c0ce53d0636438c5372d3efeb5ae99b676fa5a5d1581bad46060", "created": "2017\-07\-24T16:52:54.898893387Z", "createdBy": "/bin/sh \-c #(nop) ADD file:ebba725fb97cea45d0b1b35ccc8144e766fcfc9a78530465c23b0c4674b14042 in / ", "size": 45142935, "comment": "" } ] .fi .RE .SH SEE ALSO .PP podman(1) .SH HISTORY .PP July 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com \[la]mailto:umohnani@redhat.com\[ra]