Podman
Inspect container runtime state
podman inspect <container>
Operational command for Inspect container runtime state. Focus fields: State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy.
Use when working the canonical Topic linux--containers-container-troubleshooting and the matching failure boundary.
inspect container logs and the host namespace/cgroup resource that corresponds to the failing field
Privilege Use an account/context authorized for this observation; do not broaden scope unnecessarily.State impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
State.Status, ExitCode, Error, Pid, mounts, network settings and restart policyImportant persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
This command directly exposes State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy for the selected object/context at execution time.
It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
inspect container logs and the host namespace/cgroup resource that corresponds to the failing field
Command guidance
Execution context
Podman
Use when
Use when working the canonical Topic linux--containers-container-troubleshooting and the matching failure boundary.
Important fields
State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy
Common problems
Common mistakes: wrong object, node, VRF/namespace, time window, or treating a management-plane status as workload proof.
Operational impact
Read-only observation; runtime cost still depends on platform and result size.
Runtime cautions
Capture the command, selected scope and timestamp so the result can be correlated with the original test.
Technical context
Known-good: the intended container is running with the expected image, mounts and network identity. Suspicious: the container is exited/restarting, reports an error, or required mounts/network settings differ. Next discriminating check: inspect container logs and the host namespace/cgroup resource that corresponds to the failing field.
Variants · known-good and broken output
Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.
Illustrative Known-good interpretationKnown-good · Podman
Illustrative state cue only; not captured output: the intended container is running with the expected image, mounts and network identityhealthy
Inspect container runtime state — Known-good. Inspect State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy. Observed cue: the intended container is running with the expected image, mounts and network identity. This supports only the state returned by podman inspect <container> for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: inspect container logs and the host namespace/cgroup resource that corresponds to the failing field. Correlate the result with the same workload/test before declaring recovery.
This command directly exposes State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy for the selected object/context at execution time.
Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.inspect container logs and the host namespace/cgroup resource that corresponds to the failing field
Illustrative Transitional interpretationTransitional · Podman
Illustrative state cue only; not captured output: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.transitional
Inspect container runtime state — Transitional. Inspect State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy. Observed cue: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.. This supports only the state returned by podman inspect <container> for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: inspect container logs and the host namespace/cgroup resource that corresponds to the failing field. Correlate the result with the same workload/test before declaring recovery.
This command directly exposes State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy for the selected object/context at execution time.
Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.inspect container logs and the host namespace/cgroup resource that corresponds to the failing field
Illustrative Broken interpretationBroken · Podman
Illustrative state cue only; not captured output: the container is exited/restarting, reports an error, or required mounts/network settings differbroken
Inspect container runtime state — Broken. Inspect State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy. Observed cue: the container is exited/restarting, reports an error, or required mounts/network settings differ. This supports only the state returned by podman inspect <container> for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: inspect container logs and the host namespace/cgroup resource that corresponds to the failing field. Correlate the result with the same workload/test before declaring recovery.
This command directly exposes State.Status, ExitCode, Error, Pid, mounts, network settings and restart policy for the selected object/context at execution time.
Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.inspect container logs and the host namespace/cgroup resource that corresponds to the failing field