1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Allow pulling stats once and disconnecting.

Adds a `stream` query param to the stats API which allows API users to
only collect one stats entry and disconnect instead of keeping the
connection alive to stream more stats.

Also adds a `--no-stream` flag to `docker stats` which does the same

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 485c6d868b
Component: cli
This commit is contained in:
Brian Goff
2015-02-13 11:45:04 -05:00
committed by Tibor Vass
parent ca3e83257e
commit d3cd09fb11
4 changed files with 5 additions and 2 deletions

View File

@@ -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