NAME 名称

podman-pod-inspect - Display information describing a pod
podman-pod-inspect - 显示描述 pod 的信息

SYNOPSIS 概要

podman pod inspect [options] pod
podman pod inspect [选项] pod …

DESCRIPTION 描述

Displays configuration and state information about a given pod. It also displays information about containers that belong to the pod.
显示有关给定 pod 的配置和状态信息。它还显示属于该 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:
更改默认输出格式。这可以是支持的类型,如'json'或 Go 模板。Go 模板的有效占位符如下所示:

Placeholder

Description

.BlkioDeviceReadBps

Block I/O Device Read, in bytes/sec
每秒块 I/O 设备读取字节

.BlkioDeviceWriteBps

Block I/O Device Read, in bytes/sec
每秒块 I/O 设备读取字节

.BlkioWeight

Block I/O Weight 块 I/O 权重

.BlkioWeightDevice

Block I/O Device Weight 块 I/O 设备权重

.CgroupParent

Pod cgroup parent Pod cgroup 父级

.CgroupPath

Pod cgroup path Pod cgroup 路径

.Containers

Pod containers Pod 容器

.CPUPeriod

CPU period CPU 周期

.CPUQuota

CPU quota CPU 配额

.CPUSetCPUs

CPU Set CPUs CPU 集合 CPUs

.CPUSetMems

CPU Set Mems CPU 集合内存

.CPUShares

CPU Shares CPU 分配

.CreateCgroup

Whether cgroup was created
cgroup 是否已创建

.CreateCommand

Create command 创建命令

.Created … .创建…

Time when the pod was created
Pod 创建时间

.CreateInfra

Whether infrastructure created
是否创建基础设施

.Devices

Devices

.ExitPolicy

Exit policy 退出策略

.Hostname

Pod hostname Pod 主机名

.ID

Pod ID

.InfraConfig …

Infra config (contains further fields)
基础设施配置(包含更多字段)

.InfraContainerID

Pod infrastructure ID Pod 基础设施 ID

.InspectPodData …

Nested structure, for experts only
嵌套结构,仅供专家使用

.Labels … .标签 …

Pod labels Pod 标签

.LockNumber

Number of the pod’s Libpod lock
Pod 的 Libpod 锁编号

.MemoryLimit

Memory limit, bytes 内存限制,字节

.MemorySwap

Memory swap limit, in bytes
以字节为单位的内存交换限制

.Mounts

Mounts

.Name

Pod name Pod 名称

.Namespace

Namespace

.NumContainers

Number of containers in the pod
Pod 中的容器数量

.RestartPolicy

Restart policy of the pod
Pod 的重启策略

.SecurityOpts

Security options 安全选项

.SharedNamespaces

Pod shared namespaces Pod 共享的命名空间

.State

Pod state Pod 状态

.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. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
而不是提供 Pod 名称或 ID,请使用最后创建的 Pod。注意:最后启动的 Pod 可能来自主机上其他 Podman 用户。(此选项不适用于远程 Podman 客户端,包括 Mac 和 Windows(不包括 WSL2)机器)

EXAMPLE 例子 ¶

Inspect specified pod: 检查指定的 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"
              }
         ]
     }
]

SEE ALSO 参见 ¶

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

HISTORY 历史 ¶

August 2018, Originally compiled by Brent Baude bbaude@redhat.com
2018 年 8 月,最初由 Brent Baude bbaude@redhat.com 编译