logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

podman-pod-inspect - Display information describing a pod

Description

       Displays  configuration  and  state  information  about  a given pod.  It also displays information about
       containers that belong to the pod.

Example

       Inspect specified 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"
                     }
                ]
            }
       ]

History

       August 2018, Originally compiled by Brent Baude bbaude@redhat.commailto:bbaude@redhat.compodman-pod-inspect(1)

Name

       podman-pod-inspect - Display information describing a pod

Options

--format,-f=format
       Change the default output format.  This can be of a supported type like 'json' or a Go  template.   Valid
       placeholders for the Go template are listed below:

       ┌──────────────────────┬───────────────────────────────────────┐
       │ PlaceholderDescription                           │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .BlkioDeviceReadBps  │ Block I/O Device Read, in bytes/sec   │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .BlkioDeviceWriteBps │ Block I/O Device Read, in bytes/sec   │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .BlkioWeightBlockI/OWeight                      │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .BlkioWeightDeviceBlockI/ODeviceWeight               │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CgroupParentPodcgroupparent                     │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CgroupPathPodcgrouppath                       │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .ContainersPodcontainers                        │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CPUPeriodCPUperiod                            │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CPUQuotaCPUquota                             │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CPUSetCPUsCPUSetCPUs                          │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CPUSetMemsCPUSetMems                          │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CPUSharesCPUShares                            │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CreateCgroupWhethercgroupwascreated            │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CreateCommandCreatecommand                        │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .Created...Timewhenthepodwascreated         │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .CreateInfraWhetherinfrastructurecreated        │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .DevicesDevices                               │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .ExitPolicyExitpolicy                           │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .HostnamePodhostname                          │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .IDPodID                                │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .InfraConfig...     │ Infra    config   (contains   further │
       │                      │ fields)                               │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .InfraContainerIDPodinfrastructureID                 │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .InspectPodData...  │ Nested structure, for experts only    │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .Labels...Podlabels                            │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .LockNumber          │ Number of the pod's Libpod lock       │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .MemoryLimitMemorylimit,bytes                   │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .MemorySwapMemoryswaplimit,inbytes           │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .MountsMounts                                │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .NamePodname                              │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .NamespaceNamespace                             │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .NumContainers       │ Number of containers in the pod       │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .RestartPolicyRestartpolicyofthepod             │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .SecurityOptsSecurityoptions                      │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .SharedNamespacesPodsharednamespaces                 │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .StatePodstate                             │
       ├──────────────────────┼───────────────────────────────────────┤
       │ .VolumesFromVolumesfrom                          │
       └──────────────────────┴───────────────────────────────────────┘

   --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.  (This option is not available with the remote Podman
       client, including Mac and Windows (excluding WSL2) machines)

See Also

podman(1), podman-pod(1), podman-inspect(1)

Synopsis

podmanpodinspect [options] pod ...

See Also