8.2. Displaying pod information


Learn about how to display pod information.

Prerequisites

  • The container-tools meta-package is installed.
  • The pod has been created. For details, see section Creating pods.

Procedure

  • Display active processes running in a pod:

    • To display the running processes of containers in a pod, enter:

      $ podman pod top mypod
      USER   PID   PPID   %CPU    ELAPSED         TTY     TIME   COMMAND
      0      1     0      0.000   24.077433518s   ?       0s     /pause
      root   1     0      0.000   24.078146025s   pts/0   0s     /bin/bash
    • To display a live stream of resource usage stats for containers in one or more pods, enter:

      $ podman pod stats -a --no-stream
      ID             NAME              CPU %   MEM USAGE / LIMIT   MEM %   NET IO    BLOCK IO   PIDS
      a9f807ffaacd   frosty_hodgkin    --      3.092MB / 16.7GB    0.02%   -- / --   -- / --    2
      3b33001239ee   sleepy_stallman   --      -- / --             --      -- / --   -- / --    --
    • To display information describing the pod, enter:

      $ podman pod inspect --format json <POD_ID_1> <POD_ID_2> <POD_ID_3>
      [
        {
            "CgroupParent": "/libpod_parent",
            "Containers": [
              {
                "ID": "...",
                "State": "..."
              }
            ],
            "Created": "2025-10-16T12:00:00.000000000Z",
            "ID": "673f326c9f69b0d24c0847f97a544c79532817d2a713917812f865f1e8e52a8a",
            "InfraContainerID": "...",
            "Labels": {},
            "Name": "web_pod",
            "State": "Running",
          },
          {
            "CgroupParent": "/libpod_parent",
            "Containers": [
              {
                "ID": "...",
                "State": "..."
              }
            ],
            "Created": "2025-10-16T12:01:00.000000000Z",
            "ID": "a1b2c3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef",
            "InfraContainerID": "...",
            "Labels": {},
            "Name": "db_pod",
            "State": "Running",
          }
      ]

      You can see information about containers in the pod.

注意

Beginning with Podman v5.0.0, pod output is always a JSON array, regardless of the number of pods.

For more information, see the podman-pod-top(1), podman-pod-stats(1), and podman-pod-inspect(1) man pages on your system.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部