mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
Fix up example description of podman-stats.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -79,6 +79,7 @@ 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
|
||||
@ -86,18 +87,21 @@ a9f807ffaacd frosty_hodgkin -- 3.092MB / 16.7GB 0.02% -- / -- -
|
||||
3b33001239ee sleepy_stallman -- -- / -- -- -- / -- -- / -- --
|
||||
```
|
||||
|
||||
List specified container statistics in streaming mode:
|
||||
```
|
||||
# podman stats --no-stream a9f80
|
||||
# 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 specified statistics about specified container in table format:
|
||||
```
|
||||
$ podman stats --no-trunc 3667 --format 'table {{ .ID }} {{ .MemUsage }}'
|
||||
ID MEM USAGE / LIMIT
|
||||
3667c6aacb06aac2eaffce914c01736420023d56ef9b0f4cfe58b6d6a78b7503 49.15kB / 67.17GB
|
||||
```
|
||||
|
||||
List specified container statistics in JSON format:
|
||||
```
|
||||
# podman stats --no-stream --format=json a9f80
|
||||
[
|
||||
@ -114,6 +118,7 @@ ID MEM USAGE / LI
|
||||
]
|
||||
```
|
||||
|
||||
List specified container statistics in table format:
|
||||
```
|
||||
# podman stats --no-stream --format "table {{.ID}} {{.Name}} {{.MemUsage}}" 6eae
|
||||
ID NAME MEM USAGE / LIMIT
|
||||
|
Reference in New Issue
Block a user