podman-pod-inspect(1)
okay so bestie, welcome to the podman-pod-inspect(1) manual page π β¨ this one's all about peeking at your pods and getting the full tea. no cap, it's lowkey iconic.
β¨ NAME β¨
podman-pod-inspect β Display information describing a pod
π¦ SYNOPSIS π¦
podman pod inspect [options] pod ...
π DESCRIPTION π
So this command shows you all the config and state deets for a given pod β and it also spills the tea on the containers that belong to that pod. π
π OPTIONS π
πΈ --format, -f=format πΈ
Change the default output format. This can be a supported type like json or a Go template. Valid placeholders for the Go template are listed below:
.BlkioDeviceReadBpsβ Block I/O Device Read, in bytes/sec.BlkioDeviceWriteBpsβ Block I/O Device Read, in bytes/sec.BlkioWeightβ Block I/O Weight.BlkioWeightDeviceβ Block I/O Device Weight.CgroupParentβ Pod cgroup parent.CgroupPathβ Pod cgroup path.Containersβ Pod containers.CPUPeriodβ CPU period.CPUQuotaβ CPU quota.CPUSetCPUsβ CPU Set CPUs.CPUSetMemsβ CPU Set Mems.CPUSharesβ CPU Shares.CreateCgroupβ Whether cgroup was created.CreateCommandβ Create command.Created ...β Time when the pod was created.CreateInfraβ Whether infrastructure created.Devicesβ Devices.ExitPolicyβ Exit policy.Hostnameβ Pod hostname.IDβ Pod ID.InfraConfig ...β Infra config (contains further fields).InfraContainerIDβ Pod infrastructure ID.InspectPodData ...β Nested structure, for experts only.Labels ...β Pod labels.LockNumberβ Number of the pod's Libpod lock.MemoryLimitβ Memory limit, bytes.MemorySwapβ Memory swap limit, in bytes.Mountsβ Mounts.Nameβ Pod name.Namespaceβ Namespace.NumContainersβ Number of containers in the pod.RestartPolicyβ Restart policy of the pod.SecurityOptsβ Security options.SharedNamespacesβ Pod shared namespaces.Stateβ Pod state.VolumesFromβ Volumes from
π --latest, -l π
Instead of providing the pod name or ID, use the last created pod.
Note: the last started pod can be from other users of Podman on the host machine.
Heads up: This option is <strong>not</strong> available with the remote Podman client, including Mac and Windows (excluding WSL2) machines.
β¨ EXAMPLE β¨
Okay bestie, time for the fun part β let's actually see this thing in action π
Peep a specific pod:
$ podman pod inspect foobar
[
{
"Id": "3513ca70583dd7ef2bac83331350f6b6c47d7b4e526c908e49d89ebf720e4693",
"Name": "foobar",
"Labels": {},
"CgroupParent": "/libpod_parent",
"CreateCgroup": true,
"Created": "2018-08-08T11:15:18.823115347-05:00"
"State": "created",
"Hostname": "",
"SharedNamespaces": [
"uts",
"ipc",
"net"
]
"CreateInfra": false,
"InfraContainerID": "1020dd70583dd7ff2bac83331350f6b6e007de0d026c908e49d89ebf891d4699"
"CgroupPath": ""
"Containers": [
{
"id": "d53f8bf1e9730281264aac6e6586e327429f62c704abea4b6afb5d8a2b2c9f2c",
"state": "configured"
}
]
}
]
Look at all that JSON, it's giving full transparency β¨
Just want the name and the state? Say less:
$ podman pod inspect --format "{{.Name}}\t{{.State}}" mypod
mypod Running
That little \t is a tab btw, so it lines up all pretty π
Pod ID plus how many containers it's holding:
$ podman pod inspect mypod --format "Pod {{.Name}} ({{.ID}}) has {{.NumContainers}} containers"
Pod mypod (605f5f776e101a6e0ad11ea802cae25eabf299da77122f2963fa65dc6ccf6717) has 2 containers
{{.NumContainers}} is so handy, no cap π«Ά
Creation time + which namespaces are being shared:
$ podman pod inspect mypod --format "Created: {{.Created}}\nShared: {{.SharedNamespaces}}"
Created: 2025-08-14 21:16:05.861363099 +0000 UTC
Shared: [net uts ipc]
\n for the newline, {{.SharedNamespaces}} for the tea β
Resource limits, come get your numbers:
$ podman pod inspect --format "Memory: {{.MemoryLimit}}, CPU Period: {{.CPUPeriod}}, CPU Quota: {{.CPUQuota}}" mypod
Memory: 1073741824, CPU Period: 100000, CPU Quota: 50000
And if you wanna see every container inside the pod β range girlies rise up:
$ podman pod inspect --format "{{range .Containers}}{{.Id}}: {{.State}} {{end}}" mypod
e907f7902decca9d6b600b4d3cca9541d9b89dd726b2af7ad2eba05d2a97083f: running c5a53050a31aed71c55cb6a31b9564c69a1009f77750f3f0e8093bd98fcd8918: running
π note that those two containers just get squished together on one line β if you want them separated, add a \n in there yourself, bestie. The manpage shows it raw, so raw it stays.
πΈ SEE ALSO πΈ
π HISTORY π
August 2018, originally compiled by Brent Baude bbaude@redhat.com β¨mailto:bbaude@redhat.comβ©
Like, the original original. Respect the elders π«‘π
okay that's the whole page bestie, you made it to the end π this was podman-pod-inspect(1), and the lore goes all the way back to August 2018 β iconic behavior from a page that's been serving format-string realness for years. now go inspect something, you've got this πβ¨π¦
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-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