NAME 名称

podman-pod-top - Display the running processes of containers in a pod
podman-pod-top - 显示 Pod 中容器的运行进程

SYNOPSIS 概要

podman pod top [options] pod [format-descriptors]
podman pod top [选项] pod [格式描述符]

DESCRIPTION 描述

Display the running processes of containers in a pod. The format-descriptors are ps (1) compatible AIX format descriptors but extended to print additional information, such as the seccomp mode or the effective capabilities of a given process. The descriptors can either be passed as separate arguments or as a single comma-separated argument.
显示 Pod 中容器的运行进程。格式描述符是兼容 ps (1) 的 AIX 格式描述符,但扩展以打印额外信息,如给定进程的 seccomp 模式或有效能力。描述符可以作为单独参数传递,也可以作为单个逗号分隔的参数传递。

OPTIONS 选项

--help, -h --help,-h ¶

Print usage statement 打印使用说明

--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)机器)

FORMAT DESCRIPTORS 格式描述符 ¶

For a full list of available descriptors, see podman-top(1)
有关可用描述符的完整列表,请参阅 podman-top(1)

EXAMPLES 示例

Print top data for the specified pod. By default, podman-pod-top prints data similar to ps -ef:
打印指定 pod 的顶部数据。默认情况下, podman-pod-top 打印类似于 ps -ef 的数据:

$ podman pod top b031293491cc
USER   PID   PPID   %CPU    ELAPSED             TTY   TIME   COMMAND
root   1     0      0.000   2h5m38.737137571s   ?     0s     top
root   8     0      0.000   2h5m15.737228361s   ?     0s     top

The output can be controlled by specifying format descriptors as arguments after the pod.
输出可以通过在 pod 后指定格式描述符作为参数来控制。

Print the pod top data fields pid,seccomp, args and %C on the latest pod created. (This -l option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
打印最新创建的 pod 上的 pid、seccomp、args 和 %C 数据字段。(此 -l 选项不适用于远程 Podman 客户端,包括 Mac 和 Windows(不包括 WSL2)机器)

$ podman pod top -l pid seccomp args %C
PID   SECCOMP   COMMAND   %CPU
1     filter    top       0.000
1     filter    /bin/sh   0.000

SEE ALSO 参见 ¶

podman(1), podman-pod(1), ps(1), seccomp(2), proc(5), capabilities(7)
podman(1)、podman-pod(1)、ps(1)、seccomp(2)、proc(5)、capabilities(7)

HISTORY 历史 ¶

August 2018, Originally compiled by Peter Hunt pehunt@redhat.com
2018 年 8 月,最初由 Peter Hunt pehunt@redhat.com 编写