podman-stats(1)
π NAME π
okay bestie, this is podman-stats(1) from the General Commands Manual, and itβs literally here to make container resource-watching make sense π
podman-stats β display a live stream of one or more containerβs resource usage statistics.
β¨ SYNOPSIS β¨
podman stats [options] [container]
podman container stats [options] [container]
π«Ά DESCRIPTION π«Ά
It displays a live stream of one or more containersβ resource usage statistics. Main-character monitoring energy, no cap π
π¨ Note: Rootless environments are not able to report statistics about their networking usage.
πΈ OPTIONS πΈ
--all,-aβ show all containers. Only running containers are shown by default.--format=templateβ pretty-print container statistics to JSON or using a Go template.
Valid placeholders for the Go template are listed below:
.AvgCPUβ Average CPU, full precision float..AVGCPUβ Average CPU, formatted as a percent..BlockInputβ Total data read from block device..BlockIOβ Total data read/total data written to block device..BlockOutputβ Total data written to block device..ContainerIDβ Container ID, full (untruncated) hash..ContainerStats ...β Nested structure, for experts only..CPUβ Percent CPU, full precision float..CPUNanoβ CPU Usage, total, in nanoseconds..CPUPercβ Percentage of CPU used..CPUSystemNanoβ CPU Usage, kernel, in nanoseconds..Durationβ Same as CPUNano..IDβ Container ID, truncated..MemLimitβ Memory limit, in bytes..MemPercβ Memory percentage used..MemUsageβ Memory usage..MemUsageBytesβ Memory usage (IEC)..Nameβ Container Name..NetIOβ Network IO..Network ...β Network I/O, separated by network interface..PIDsβ Number of PIDs..PIDSβ Number of PIDs (yes, we know this is a dup)..SystemNanoβ Current system datetime, nanoseconds since epoch..Upβ Duration (CPUNano), in human-readable form..UpTimeβ Same as Up.
When using a Go template, precede the format with table to print headers.
--interval,-i=secondsβ time in seconds between stats reports, defaults to 5 seconds β±οΈ--latest,-lβ instead of providing the container name or ID, use the last created container. Note: the last started container 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.)--no-resetβ do not clear the terminal/screen in between reporting intervals.--no-streamβ disable streaming stats and only pull the first result, default setting is false.--no-truncβ do not truncate output.
π EXAMPLE π
List statistics about all running containers without streaming mode:
# podman 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 -- -- / -- -- -- / -- -- / -- --
List the specified containerβs statistics in streaming mode:
# podman stats a9f80
ID NAME CPU % MEM USAGE / LIMIT MEM % NET IO BLOCK IO PIDS
a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -- / -- 2
List the specified statistics about the specified container in table format:
$ podman stats --no-trunc 3667 --format 'table {{ .ID }} {{ .MemUsage }}'
ID MEM USAGE / LIMIT
3667c6aacb06aac2eaffce914c01736420023d56ef9b0f4cfe58b6d6a78b7503 49.15kB / 67.17GB
List the specified container statistics in JSON format:
# podman stats --no-stream --format=json a9f80
[
{
"id": "a9f807ffaacd",
"name": "frosty_hodgkin",
"cpu_percent": "--",
"mem_usage": "3.092MB / 16.7GB",
"mem_percent": "0.02%",
"netio": "-- / --",
"blocki": "-- / --",
"pids": "2"
}
]
List the specified container statistics in table format:
# podman stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
ID NAME MEM USAGE / LIMIT
6eae9e25a564 clever_bassi 3.031MB / 16.7GB
π Note: When using rootless networking with the rootlesskit port handler, the traffic sent via the port forwarding is accounted to the lo device. Traffic accounted to lo is not accounted in the stats output.
π¦ SEE ALSO π¦
π HISTORY π
July 2017, originally compiled by Ryan Cole rycole@redhat.com (mailto:rycole@redhat.com) π
thatβs the whole manual, bestie: podman-stats(1) Β· source/version vibes: General Commands Manual Β· date flair: July 2017 β now go watch those containers glow β¨π«Ά
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms