podman-image-inspect(1)
π podman-image-inspect(1) π
okay bestie, welcome to the podman-image-inspect manual page, aka the little glow-up mirror you hold up to your images to see everything β¨ It's part of the podman family, and it's genuinely one of the most useful little commands ever, no cap.
β¨ NAME β¨
podman-image-inspect β Display an image's configuration π«Ά
πΈ SYNOPSIS πΈ
podman image inspect [options] image [image ...]
π DESCRIPTION π
So basically, this shows you the low-level information on images that you identify by name or by ID. It's giving microscope energy π¬ β you want the deets, it's got the deets.
By default, it renders all the results in a JSON array. And if you specify a format, the given template is executed for each result. Slay.
π OPTIONS π
--format,-f=formatβ Format the output using the given Go template. The keys of the returned JSON can be used as the values for the--formatflag (peep the examples below, they ate π ).
Valid placeholders for the Go template are listed below, and yes we're listing every single one, we don't skip π:
.Annotations ...β Annotation information included in the image.Architectureβ Architecture of software in the image.Authorβ Image author.Commentβ Image comment.Config ...β Structure with config info.Created ...β Image creation time (string, ISO3601).Digestβ Image digest (sha256:+64-char hash).GraphDriver ...β Structure for the graph driver info.HealthCheck ...β Structure for the health check info.Historyβ History information stored in image.IDβ Image ID (full 64-char hash).Labels ...β Label information included in the image.ManifestTypeβ Manifest type of the image.NamesHistoryβ Name history information stored in image.Osβ Operating system of software in the image.Parentβ Parent image of the specified image.RepoDigestsβ Repository digests for the image.RepoTagsβ Repository tags for the image.RootFS ...β Structure for the root file system info.Sizeβ Size of image, in bytes.Userβ Default user to execute the image as.Versionβ Image Version.VirtualSizeβ Virtual size of image, in bytes
bestie those ... after some of the names are part of the placeholder, don't come for me, that's literally how they're written π
π EXAMPLE π
Inspect information on the specified image:
$ podman image inspect fedora
[
{
"Id": "37e5619f4a8ca9dbc4d6c0ae7890625674a10dbcfb76201399e2aaddb40da17d",
"Digest": "sha256:1b0d4ddd99b1a8c8a80e885aafe6034c95f266da44ead992aab388e6aa91611a",
"RepoTags": [
"registry.fedoraproject.org/fedora:latest"
],
"RepoDigests": [
"registry.fedoraproject.org/fedora@sha256:1b0d4ddd99b1a8c8a80e885aafe6034c95f266da44ead992aab388e6aa91611a",
"registry.fedoraproject.org/fedora@sha256:b5290db40008aae9272ad3a6bd8070ef7ecd547c3bef014b894c327960acc582"
],
"Parent": "",
"Comment": "Created by Image Factory",
"Created": "2021-08-09T05:48:47Z",
"Config": {
"Env": [
"DISTTAG=f34container",
"FGC=f34",
"container=oci"
],
"Cmd": [
"/bin/bash"
],
"Labels": {
"license": "MIT",
"name": "fedora",
"vendor": "Fedora Project",
"version": "34"
}
},
"Version": "1.10.1",
"Author": "",
"Architecture": "amd64",
"Os": "linux",
"Size": 183852302,
"VirtualSize": 183852302,
"GraphDriver": {
"Name": "overlay",
"Data": {
"UpperDir": "/home/dwalsh/.local/share/containers/storage/overlay/0203e243f1ca4b6bb49371ecd21363212467ec6d7d3fa9f324cd4e78cc6b5fa2/diff",
"WorkDir": "/home/dwalsh/.local/share/containers/storage/overlay/0203e243f1ca4b6bb49371ecd21363212467ec6d7d3fa9f324cd4e78cc6b5fa2/work"
}
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:0203e243f1ca4b6bb49371ecd21363212467ec6d7d3fa9f324cd4e78cc6b5fa2"
]
},
"Labels": {
"license": "MIT",
"name": "fedora",
"vendor": "Fedora Project",
"version": "34"
},
"Annotations": {},
"ManifestType": "application/vnd.docker.distribution.manifest.v2+json",
"User": "",
"History": [
{
"created": "2021-08-09T05:48:47Z",
"comment": "Created by Image Factory"
}
],
"NamesHistory": [
"registry.fedoraproject.org/fedora:latest"
]
}
]
Inspect image ID for the specified image:
$ podman image inspect --format '{{ .Id }}' fedora
37e5619f4a8ca9dbc4d6c0ae7890625674a10dbcfb76201399e2aaddb40da17d
like... look at that clean little one-liner output. main character formatting energy πβ¨
π¦ SEE ALSO π¦
podman(1), podman-image(1), podman-inspect(1)
β HISTORY β
Sep 2021, Originally compiled by Dan Walsh dwalsh@redhat.com β¨mailto:dwalsh@redhat.comβ©
and that's the whole page, bestie π this was podman-image-inspect(1), part of the General Commands Manual, with the original write-up dating all the way back to Sep 2021 by Dan Walsh. go inspect something iconic, you got this ππβ¨
π¦ 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