podman-container-diff(1)
๐ podman-container-diff(1) โ General Commands Manual, but make it cute
okay bestie so this is podman-container-diff, and it's genuinely one of my faves because it lets you spill the tea on what's going on inside a container's filesystem ๐โจ
๐ธ NAME ๐ธ
podman-container-diff โ inspect changes on a container's filesystem. that's it, that's the vibe ๐ซถ
โจ SYNOPSIS โจ
podman container diff [options] container [container]
๐ฆ DESCRIPTION ๐ฆ
So here's the deal: this command displays changes on a container's filesystem. iconic. basically it's a glow-up check โจ
The container gets compared to its parent layer โ or, if you're feeling generous and hand over a second argument, it compares against that one instead. two containers, one diff, main character energy fr fr ๐
Every line of output gets prefixed with a lil symbol so you know exactly what went down. here's the decoder ring ๐ฎ:
Aโ a file or directory was added ๐ (new drop, we love to see it)Dโ a file or directory was deleted ๐ญ (gone, reduced to atoms)Cโ a file or directory was changed ๐ฆ (glow-up arc, but make it filesystem)
no cap, that's the whole legend. memorise it, it's giving flashcards.
๐ OPTIONS ๐
--formatโ alters the output into a different format. and the only valid format forpodman container diffisjson. that's the whole menu, bestie, don't try anything else ๐--latest,-lโ instead of giving a container name or ID, just use the last created container. lowkey convenient, highkey chaotic. โ ๏ธ Note: the last started container can be from other users of Podman on the host machine. so yeah, it might not be yours. vibe check accordingly ๐
๐จ also important: this option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines. so if that's you, sorry bestie, no --latest for you ๐ญ
๐ EXAMPLES ๐
first up, the classic โ diff a container against its parent layer:
# podman container diff container1
C /usr
C /usr/local
C /usr/local/bin
A /usr/local/bin/docker-entrypoint.sh
look at that. docker-entrypoint.sh was added, everything else just changed. slay ๐
now let's get fancy and diff two containers with json output:
$ podman container diff --format json container1 container2
{
"added": [
"/test"
]
}
clean. structured. json-pilled. "/test" was added and the output is obsessed with telling you about it โจ
and finally, the --latest shortcut:
$ podman container diff --latest
C /etc
just C /etc. something in /etc changed. mysterious. iconic. we move ๐
๐ SEE ALSO ๐
go read those too, they're the supporting cast and they ate ๐ซถ
๐ HISTORY ๐
July 2021 โ originally compiled by Paul Holzinger <pholzing@redhat.com> ๐
and that's the whole page, bestie!! ๐ธ thanks for reading, go diff something and feel powerful ๐ฆ
podman-container-diff(1) โ part of the General Commands Manual, dated July 2021. that's the source and the version and the date all wrapped up in a lil bow ๐ mwah, bye!! ๐โจ
๐ฆ 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