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