podman-history(1)
π podman-history(1) π
okay bestie, welcome to the General Commands Manual glow-up edition, this is podman-history and she's here to spill all the tea about your image layers π«β¨
β¨ NAME β¨
podman-history β Show the history of an image π
πΈ SYNOPSIS πΈ
podman history [options] image[:tag|@digest]
podman image history [options] image[:tag|@digest]
π¦ DESCRIPTION π¦
so like, podman history shows you the history of an image by printing out the deets on every single layer used in that image. the receipts, fr fr π§Ύ
for each layer it prints out Created (that's the time and date), Created By, Size, and Comment. that's the whole lineup, no gatekeeping.
the output can be truncated or not using the --no-trunc flag. and if the --human flag is set, the time of creation and the size get printed in a human readable format (so like, not a scary raw timestamp, we love that for us π
).
the --quiet flag displays the ID of the image only when set, and the --format flag is used to print the info using the Go template that you provide. yes you, main character, you get to pick π
π OPTIONS π
π --format=format
alters the output for a format like 'json' or a Go template.
the valid placeholders for the Go template are listed below, memorize them bestie (or don't, this page exists):
.Commentβ Comment for the layer.Createdβ if--human, time elapsed since creation, otherwise time stamp of creation.CreatedAtβ Time when the image layer was created.CreatedByβ Command used to create the layer.CreatedSinceβ Elapsed time since the image layer was created.IDβ Image ID.Sizeβ Size of layer on disk.Tagsβ Image tags
π --help, -h
Print usage statement
πΈ --human, -H
Display sizes and dates in human readable format (default true).
β¨ --no-trunc
Do not truncate the output (default false).
π --quiet, -q
Print the numeric IDs only (default false).
π EXAMPLES π
Show 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
[
{
"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": ""
}
]
π SEE ALSO π
π HISTORY π
July 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com β¨mailto:umohnani@redhat.comβ©
and that's the whole page bestie, we ate and left no crumbs π₯ this was podman-history(1) straight outta the General Commands Manual, dated all the way back to July 2017 β iconic behavior honestly, periodt π
β¨π¦
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms