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
Request: docker stats without any container should display all running containers #10772
Comments
It would be great, or at least allow a 'docker stats *' Clunky workaround for now (I save it to my bash profile as alias docker-all-stats): docker stats $(docker ps|grep -v "NAMES"|awk '{ print $NF }'|tr "\n" " ") |
I don't like |
Yes I was about to say the same thing about shell and * On Friday, February 13, 2015, Patrick Hemmer notifications@github.com
|
Oh, and there's a much simpler version of that command as well:
|
True.. I guess 'docker stats -a' (or no flags at all) would be more appropriate. |
That doesn't work exactly the way I'd like it. -q prints the container ID, but not the friendly name. |
Have you tried it? |
You are right about the arguments, but I originally came up with that so its possible to print out all containers using their names, instead of by ID. I have 12 or more containers on each host so trying to cross reference containerID with friendly name is a pain. |
#dibs |
+1 |
Agree 👍 The current behaviour always catches me by surprise. |
+1 |
closed by #11763 ? |
no, that was just a dupe |
+1 |
+1 @mnuessler any update on this? |
@runcom currently working on it.. |
Just want to give a short update on this: I got something working, but still need to provide a test. And I have two questions:
|
My own personal opinions: I see value in both name and ID. Personally, I never use names. I use IDs everywhere. But I know others are the opposite. The only options I see to satisfy that would be to either show both, or a flag to control it. Yes, container should be removed from the list. |
I agree with @phemmer for both propositions. I never use names too. |
+1 (name and id / remove from list when stopped) |
@mnuessler do you have a status update? If you're unsure about your implementation, it's no problem to create a PR with some "unpolished" things in it, because you will be able to discuss those issues during the design-review. Sometimes it helps to just create the PR so that the maintainers/reviewers have something to discuss. And possibly, you'll learn some things or get inspiration in the process! Just let us know, (also if you are unable to work on it) thanks in advance! |
+1 |
1 similar comment
+1 |
@mnuessler are you still working on this? If you need any help feel free to ping me here or on IRC |
👍 to this, no other way currently to continuously display all running containers. |
please please please...
is gonna go in our bash rc file :) |
ping @mnuessler if you're still working on this. @runcom perhaps you are interested in picking this up otherwise? |
@thaJeztah I'm still working on this (though slowly for lack of time :() |
+1 for the feature (with |
@runcom any updates on this one ? |
+1 for docker stats that show container names in output instead of need to remember docker stats |
PR for this is opened here; #16742 |
docker stats $(docker ps -aq) works ok for me. |
ok is a funny word ... you must love guids :) On Wed, Oct 14, 2015 at 11:52 PM, Stanislav Tyurikov <
|
Well said @SamSaffron . me, i'd like to see container names when they have them. |
@SamSaffron you caught me. :) |
You can also use simpler version:
|
@sjevs this feature was implemented in #16742 over two years ago, and is part of Docker 1.10 and up:
|
Similar to the behavior of the
top
utility, if no container is passed, it should show all containers. Since stopped containers are likely of no interest, I think it would be best to just show running containers.The text was updated successfully, but these errors were encountered: