Ubuntu 26.04

Podman : Display Container resource usage2026/05/07

 

You can check percentage of CPU, memory, network I/O for Containers.

[1] Check the resource usage of each container.
# display usage statistics with streaming

root@dlp:~#
podman stats

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO             BLOCK IO           PIDS        CPU TIME    AVG CPU %
c16962268a58  112bab1edacf-service     0.00%       516.1kB / 16.23GB  0.00%       0B / 0B            0B / 0B            1           2.489ms     0.00%
21d8f8641742  108f96966913-infra       0.00%       516.1kB / 16.23GB  0.00%       2.341kB / 1.464kB  0B / 0B            1           2.46ms      0.00%
886600e8575d  nginx-pod-pod-nginx-pod  0.02%       8.024MB / 16.23GB  0.05%       2.341kB / 1.464kB  24.58kB / 8.192kB  9           12.396ms    0.02%

# display without streaming

root@dlp:~#
podman stats --no-stream

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO             BLOCK IO           PIDS        CPU TIME    AVG CPU %
c16962268a58  112bab1edacf-service     0.00%       516.1kB / 16.23GB  0.00%       0B / 0B            0B / 0B            1           2.489ms     0.00%
21d8f8641742  108f96966913-infra       0.00%       516.1kB / 16.23GB  0.00%       2.341kB / 1.464kB  0B / 0B            1           2.46ms      0.00%
886600e8575d  nginx-pod-pod-nginx-pod  0.01%       7.963MB / 16.23GB  0.05%       2.341kB / 1.464kB  24.58kB / 8.192kB  9           12.396ms    0.01%

# display for a specific container

root@dlp:~#
podman stats 886600e8575d --no-stream

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO             BLOCK IO           PIDS        CPU TIME    AVG CPU %
886600e8575d  nginx-pod-pod-nginx-pod  0.01%       7.963MB / 16.23GB  0.05%       2.411kB / 1.464kB  24.58kB / 8.192kB  9           12.396ms    0.01%

# specify time interval for streaming display (sec)
# * default --interval is 5 sec

root@dlp:~#
podman stats 886600e8575d --interval 10

ID            NAME                     CPU %       MEM USAGE / LIMIT  MEM %       NET IO             BLOCK IO           PIDS        CPU TIME    AVG CPU %
886600e8575d  nginx-pod-pod-nginx-pod  0.01%       7.963MB / 16.23GB  0.05%       2.481kB / 1.534kB  24.58kB / 8.192kB  9           12.396ms    0.01%

# display with specific format

root@dlp:~#
podman stats --no-stream --format "table {{.ID}} {{.CPUPerc}} {{.MemPerc}}"

ID            CPU %       MEM %
c16962268a58  0.00%       0.00%
21d8f8641742  0.00%       0.00%
886600e8575d  0.01%       0.05%
Matched Content