Merge pull request #10766 from cpuguy83/stats_pull_once

Allow pulling stats once and disconnecting.
This commit is contained in:
Tibor Vass
2015-05-04 22:28:01 -07:00
11 changed files with 83 additions and 10 deletions
+3
View File
@@ -17,6 +17,9 @@ Display a live stream of one or more containers' resource usage statistics
**--help**
Print usage statement
**--no-stream**="false"
Disable streaming stats and only pull the first result
# EXAMPLES
Run **docker stats** with multiple containers.
@@ -46,6 +46,11 @@ You can still call an old version of the API using
### What's new
`GET /containers/(id)/stats`
**New!**
You can now supply a `stream` bool to get only one set of stats and
disconnect
## v1.18
@@ -647,6 +647,10 @@ This endpoint returns a live stream of a container's resource usage statistics.
}
}
Query Parameters:
- **stream** – 1/True/true or 0/False/false, pull stats once then disconnect. Default true
Status Codes:
- **200** – no error
@@ -2394,6 +2394,7 @@ more details on finding shared images from the command line.
Display a live stream of one or more containers' resource usage statistics
--help=false Print usage
--no-stream=false Disable streaming stats and only pull the first result
Running `docker stats` on multiple containers