mirror of https://github.com/docker/cli.git
Update stats cli reference documentation
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
241694402f
commit
d22558eb16
|
@ -22,6 +22,7 @@ Display a live stream of container(s) resource usage statistics
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-a, --all Show all containers (default shows just running)
|
-a, --all Show all containers (default shows just running)
|
||||||
|
--format string Pretty-print images using a Go template
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--no-stream Disable streaming stats and only pull the first result
|
--no-stream Disable streaming stats and only pull the first result
|
||||||
```
|
```
|
||||||
|
@ -77,7 +78,9 @@ Valid placeholders for the Go template are listed below:
|
||||||
|
|
||||||
Placeholder | Description
|
Placeholder | Description
|
||||||
------------ | --------------------------------------------
|
------------ | --------------------------------------------
|
||||||
`.Container` | Container name or ID
|
`.Container` | Container name or ID (user input)
|
||||||
|
`.Name` | Container name
|
||||||
|
`.ID` | Container ID
|
||||||
`.CPUPerc` | CPU percentage
|
`.CPUPerc` | CPU percentage
|
||||||
`.MemUsage` | Memory usage
|
`.MemUsage` | Memory usage
|
||||||
`.NetIO` | Network IO
|
`.NetIO` | Network IO
|
||||||
|
|
|
@ -30,6 +30,8 @@ Display a live stream of one or more containers' resource usage statistics
|
||||||
Pretty-print containers statistics using a Go template.
|
Pretty-print containers statistics using a Go template.
|
||||||
Valid placeholders:
|
Valid placeholders:
|
||||||
.Container - Container name or ID.
|
.Container - Container name or ID.
|
||||||
|
.Name - Container name.
|
||||||
|
.ID - Container ID.
|
||||||
.CPUPerc - CPU percentage.
|
.CPUPerc - CPU percentage.
|
||||||
.MemUsage - Memory usage.
|
.MemUsage - Memory usage.
|
||||||
.NetIO - Network IO.
|
.NetIO - Network IO.
|
||||||
|
|
Loading…
Reference in New Issue