Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker stats --help usage does not indicate you can monitor multiple containers #10771

Closed
phemmer opened this issue Feb 13, 2015 · 5 comments · Fixed by #10779
Closed

Docker stats --help usage does not indicate you can monitor multiple containers #10771

phemmer opened this issue Feb 13, 2015 · 5 comments · Fixed by #10779
Assignees

Comments

@phemmer
Copy link
Contributor

phemmer commented Feb 13, 2015

Currently the docker stats --help output looks like this:

Usage: docker stats [OPTIONS] CONTAINER

Display a live stream of one or more containers' resource usage statistics

  --help=false       Print usage

When I look at this, it appears the command only supports monitoring a single container.
It should really be documented as:

Usage: docker stats [OPTIONS] CONTAINER [CONTAINER...]
@phemmer phemmer changed the title Docker stats --help output does not indicate you can monitor multiple containers Docker stats --help usage does not indicate you can monitor multiple containers Feb 13, 2015
@LK4D4
Copy link
Contributor

LK4D4 commented Feb 13, 2015

@phemmer Yes, you're right, thanks!

@duglin
Copy link
Contributor

duglin commented Feb 13, 2015

actually, the way help works on that is kind of funky too - unless someone else is on it, I'll take it...

@duglin
Copy link
Contributor

duglin commented Feb 13, 2015

PR #10779 created

duglin pushed a commit to duglin/docker that referenced this issue Feb 13, 2015
Closes moby#10771

Signed-off-by: Doug Davis <dug@us.ibm.com>
@pskerrett
Copy link

It should allow you to do a 'docker stats *' to show stats of running all containers (with friendly names, not docker IDs) . Kind of silly that is missing.
A clunky work-around I've been using is:

docker stats $(docker ps|grep -v "NAMES"|awk '{ print $NF }'|tr "\n" " ")

@duglin
Copy link
Contributor

duglin commented Feb 14, 2015

@pskerrett if you look at this issue: #10772 I think that's close to what you're looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants