![]() |
![]()
| ![]() |
![]()
NAMEpodman-inspect - Display a container, image, volume, network, or pod's configuration SYNOPSISpodman inspect [options] name [...] DESCRIPTIONThis displays the low-level information on containers and images
identified by name or ID. By default, this renders all results in a JSON
array. If the inspect type is all, the order of inspection is: containers,
images, volumes, network, pods.
For more inspection options, see also podman-container-inspect(1), podman-image-inspect(1), podman-network-inspect(1), podman-pod-inspect(1), and podman-volume-inspect(1). OPTIONS--format, -f=formatFormat the output using the given Go template. The keys of the returned JSON can be used as the values for the --format flag (see examples below). --latest, -lInstead of providing the container name or ID, use the last created container. Note: the last started container can be from other users of Podman on the host machine. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines) --size, -sIn addition to normal output, display the total file size if the type is a container. --type, -t=typeReturn JSON for the specified type. Type can be 'container', 'image', 'volume', 'network', 'pod', or 'all' (default: all) (Only meaningful when invoked as podman inspect) EXAMPLEInspect the fedora image: # podman inspect fedora [ Inspect the specified image with the ImageName format specifier: # podman inspect a04 --format "{{.ImageName}}" fedora Inspect the specified image for GraphDriver format specifier: # podman inspect a04 --format "{{.GraphDriver.Name}}" overlay Inspect the specified image for its Size format specifier: # podman image inspect --format "size: {{.Size}}" alpine size: 4405240 Inspect the latest container created for EffectiveCaps format specifier. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines): podman container inspect --latest --format {{.EffectiveCaps}} [CAP_CHOWN CAP_DAC_OVERRIDE CAP_FSETID CAP_FOWNER CAP_SETGID CAP_SETUID CAP_SETFCAP CAP_SETPCAP CAP_NET_BIND_SERVICE CAP_KILL] Inspect the specified pod for the Name format specifier: # podman inspect myPod --type pod --format "{{.Name}}" myPod Inspect the specified volume for the Name format specifier: # podman inspect myVolume --type volume --format "{{.Name}}" myVolume Inspect the specified network for the Name format specifier: # podman inspect nyNetwork --type network --format "{{.name}}" myNetwork SEE ALSOpodman(1), podman-container-inspect(1), podman-image-inspect(1), podman-network-inspect(1), podman-pod-inspect(1), podman-volume-inspect(1) HISTORYJuly 2017, Originally compiled by Dan Walsh dwalsh@redhat.com ⟨mailto:dwalsh@redhat.com⟩
|