Flag Addition: --type flag added for docker inspect command#13187
Flag Addition: --type flag added for docker inspect command#13187thaJeztah merged 1 commit intomoby:masterfrom
Conversation
|
why two flags its not really scalable... |
|
I'm 👎 to the solution, but I acknowledge the problem. There are a couple possibilities that might be better suitable to solve the problem:
|
|
@calavera |
|
What if we do |
|
No 2 flags!!! On Wednesday, May 13, 2015, Brian Goff [email protected] wrote:
|
|
Ok, |
|
oh man, can we please consider just adding a new command: |
|
I don't really understand the argument against two arguments. It is not like the docker inspect has a whole ton of options now. Originally we were going to use just --image-only, but then why couldn't you ask for only container matches. Bottom line is we have bug reports from people trying to look at images with the same name as a container, and we want a simple way for the users to be able to examine them without having to understand where to search for the UUid field in a container json file. I actually hate rmi versus rm, but I guess that somewhat follows the standard of rm versus rmdir. If we went with this behaviour we should break existing behaviour for consistency. This seems like a simple fix, but simple fixes often bring out Bike Shedding arguments. |
|
It's a UI decision I know the struggle with it being the same name but two On Thursday, May 14, 2015, Daniel J Walsh [email protected] wrote:
|
|
@jfrazelle what do you mean by |
|
Not sure how adding additional commands scales better then adding options. I would argue the exact opposite. |
|
Adding 2 flags that are super specific to 1 thing is "not scalable" because But honestly I don't want to fight about this, do what you want, see what On Thursday, May 14, 2015, Daniel J Walsh [email protected] wrote:
|
|
Also I'm definitely -1 on a inspecti, rmi is awful and we should not go On Thursday, May 14, 2015, Jessica Frazelle [email protected] wrote:
|
|
@jfrazelle I understand your concern and its a valid one, but IMHO |
|
I am fine with --type=image or --type=container. |
|
The only way a new flag helps, IMO, is if its mandatory. W/o it being required we’re then Ideally, I would have preferred if we had “docker container inspect” and “docker image inspect”
|
|
I think there is a real use case for adding a flag for this, I've hit numerous times w my irssi container |
17fed35 to
77f256f
Compare
|
@jfrazelle @calavera @rhatdan |
77f256f to
ae180ed
Compare
af114c0 to
27491c4
Compare
|
design LGTM thanks |
There was a problem hiding this comment.
This flag also has to be added to the synopsis above; https://github.com/docker/docker/pull/13187/files#diff-49f81c25974e6fe4a56f32e78378faa2R10
|
Thanks @shishir-a412ed ! Added some comments inline. Also, this needs documentation in the online reference as well; https://github.com/docker/docker/blob/master/docs/reference/commandline/inspect.md |
b9f8b0c to
97275c5
Compare
|
@moxiegirl @thaJeztah I have made the changes. |
There was a problem hiding this comment.
Really minor; some dots/comma's are incorrect here. But I'm okay with leaving that for someone else to fix.
Think it should be;
Getting information on an image where image name conflict with the container name,
e.g., both image and container are named rhel7.|
LGTM, thanks for being patient, @shishir-a412ed, I know it took a while! ping @moxiegirl |
Signed-off-by: Shishir Mahajan <[email protected]>
97275c5 to
2cb74e6
Compare
|
Kicked experimental build, ready to merge if that passes |
|
@thaJeztah Sounds good ! |
Flag Addition: --type flag added for docker inspect command
|
\o/ merged! |
|
Woo Hoo |
- Add fluentd logging driver to zsh completion moby#12876 - Add inspect --type flag to zsh completion moby#13187 - Respect -H option in zsh completion moby#13195 - Fix number of argument limit for pause and unpause in zsh completion Signed-off-by: Steve Durrheimer <[email protected]>
- Add fluentd logging driver to zsh completion moby#12876 - Add inspect --type flag to zsh completion moby#13187 - Respect -H option in zsh completion moby#13195 - Fix number of argument limit for pause and unpause in zsh completion Signed-off-by: Steve Durrheimer <[email protected]>
- Add fluentd logging driver to zsh completion moby#12876 - Add inspect --type flag to zsh completion moby#13187 - Respect -H option in zsh completion moby#13195 - Fix number of argument limit for pause and unpause in zsh completion Signed-off-by: Steve Durrheimer <[email protected]>
Fixes #12483
Signed-off-by: Shishir Mahajan [email protected]