podman-image-diff(1)

πŸ“¦
version 6.1.4 Β· 6 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ podman-image-diff(1) ✨

okay bestie, welcome to the podman-image-diff page from the General Commands Manual πŸ’– this one's all about peeking at what changed inside an image's filesystem, and honestly? it's giving detective energy πŸ”


🌸 NAME 🌸

podman-image-diff β€” inspect changes on an image's filesystem πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

podman image diff [options] image [image]

✨ DESCRIPTION ✨

So basically, this command displays changes on an image's filesystem. The image gets compared to its parent layer, OR to the second argument if you hand it one. Two images in, one little diff story out πŸŽ€

The output is prefixed with these symbols, and you're gonna want to know them by heart:

  • A β€” a file or directory was added ✨
  • D β€” a file or directory was deleted πŸ’€
  • C β€” a file or directory was changed πŸ‘€

🫢 OPTIONS 🫢

🌈 --format

Alter the output into a different format. The only valid format for podman image diff is json. that's it, that's the whole menu, no cap πŸ“


πŸ”₯ EXAMPLES πŸ”₯

Display image differences from images parent layer:

$ podman image diff redis:old
C /usr
C /usr/local
C /usr/local/bin
A /usr/local/bin/docker-entrypoint.sh

Display image differences between two different images in JSON format:

$ podman image diff --format json redis:old redis:alpine
{
  "changed": [
    "/usr",
    "/usr/local",
    "/usr/local/bin"
  ],
  "added": [
    "/usr/local/bin/docker-entrypoint.sh"
  ]
}

πŸ‘‘ SEE ALSO πŸ‘‘

podman(1), podman-image(1) β€” go read those too, they're iconic πŸ’œ


🧚 HISTORY 🧚

August 2017, originally compiled by Ryan Cole rycole@redhat.com ⟨mailto:rycole@redhat.com⟩ β€” a true legend, we stan ⭐


and that's the whole page, bestie!! this came to you from the podman-image-diff(1) manual, part of the General Commands Manual lineup, with its history dating all the way back to August 2017 πŸ’– go forth and diff your images, you absolute main character πŸŒˆπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from