Add documentation for docker stats --format

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
This commit is contained in:
Boaz Shuster
2017-06-02 00:10:11 +00:00
committed by Tibor Vass
parent fadc2868b1
commit 6f4c4e466b
2 changed files with 61 additions and 4 deletions
+12
View File
@@ -9,6 +9,7 @@ docker-stats - Display a live stream of one or more containers' resource usage s
[**-a**|**--all**]
[**--help**]
[**--no-stream**]
[**--format[="*TEMPLATE*"]**]
[CONTAINER...]
# DESCRIPTION
@@ -25,6 +26,17 @@ Display a live stream of one or more containers' resource usage statistics
**--no-stream**=*true*|*false*
Disable streaming stats and only pull the first result, default setting is false.
**--format**="*TEMPLATE*"
Pretty-print containers statistics using a Go template.
Valid placeholders:
.Container - Container name or ID.
.CPUPerc - CPU percentage.
.MemUsage - Memory usage.
.NetIO - Network IO.
.BlockIO - Block IO.
.MemPerc - Memory percentage (Not available on Windows).
.PIDs - Number of PIDs (Not available on Windows).
# EXAMPLES
Running `docker stats` on all running containers