![]() |
![]()
| ![]() |
![]()
NAMEpodman-history - Show the history of an image SYNOPSISpodman history [options] image[:tag|@digest] podman image history [options] image[:tag|@digest] DESCRIPTIONpodman history 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 --no-trunc flag. If the --human flag is set, the time of creation and size are printed out in a human readable format. The --quiet flag displays the ID of the image only when set and the --format flag is used to print the information using the Go template provided by the user. OPTIONS--format=formatAlter the output for a format like 'json' or a Go template. Valid placeholders for the Go template are listed below:
--help, -hPrint usage statement --human, -HDisplay sizes and dates in human readable format (default true). --no-truncDo not truncate the output (default false). --quiet, -qPrint the numeric IDs only (default false). EXAMPLESShow the history of the specified image: $ podman history debian ID CREATED CREATED BY SIZE COMMENT b676ca55e4f2c 9 weeks ago /bin/sh -c #(nop) CMD ["bash"] 0 B <missing> 9 weeks ago /bin/sh -c #(nop) ADD file:ebba725fb97cea4... 45.14 MB Show the history of the specified image without truncating content and using raw data: $ 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 <missing> 2017-07-24T16:52:54Z /bin/sh -c #(nop) ADD file:ebba725fb97cea4... 45142935 Show the formatted history of the specified image: $ podman history --format "{{.ID}} {{.Created}}" debian b676ca55e4f2c 9 weeks ago <missing> 9 weeks ago Show the history in JSON format for the specified image: $ podman history --format json debian [ SEE ALSOpodman(1) HISTORYJuly 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com ⟨mailto:umohnani@redhat.com⟩
|