-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Restructure CLI Commands #26025
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
Restructure CLI Commands #26025
Conversation
99adf5c to
475948a
Compare
|
Absolutely LGTM on design, 🎉, 💯, etc. My only nit, but I won't fight for it, is that I'm skeptical about the need for short aliases ( |
|
Not big on the short aliases, but I like the thought for everything else. |
|
Not a huge fan of short aliases but other than that, just like @icecrime, absolutely LGTM on design 😎 🎉 |
|
My rational for the short aliases is this: It's going to be difficult to convince people to use If we don't make it easy to use the new canonical commands we're never going to be able to remove them. |
|
You think we'll be able to remove something like |
|
The rest, not any time soon. Maybe in a year or two if we're good about converting all the docs to the new form, and communicating the new canonical way of doing things. |
|
I love this, but if we do it, we should take this chance to fix the output of inspect to default to be pretty and composite. This was a HUGE point of contention during the implementation of swarm services. Making |
api/client/image/cmd.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should carry over search to docker image. We aren't searching the local image store, we are searching remote registries. Future extension to search won't happen under docker image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. Maybe it belongs with login and logout under another top-level command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I'll move the search command file to the correct package, and move it back to the top level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be a docker registry command, but that is a whole 'notha can o wyrms!
Realistically people won't do that though, they'll type |
I'm not sure that we can change |
475948a to
d23b413
Compare
My 2c -- I'm not really a fan of completion on subcommands, since it requires that you install and maintain additional completion scripts instead of being something that works out of the box. In I wouldn't really like to see I'd definitely like to see more elaboration around where we draw the lines here, e.g., why would it be OK for |
Not that I know of. File away or ping me again and I'll cook something up. I agree that this shouldn't be a part of this PR, if we frame it that way. |
d23b413 to
de52a08
Compare
|
This is now rebased, and no longer hides the commands. It only adds the new canonical commands. |
de52a08 to
7916d26
Compare
fed1b39 to
a7c8bca
Compare
|
Just discussed with @dnephin that we're gonna do docs (and completion scripts) in a follow-up PR. I'll open a tracking issue |
|
And, it's green! |
|
LGTM ! |
|
👏 |
|
Is there any chance of differentiating between Legacy|old|standalone Swarm and "Swarm Mode" at least in the doc. For instance: The old vs new swarm is a recurring area of misunderstanding over at Stackoverflow and elsewhere. The "swarm mode" should really have been named something else in my opinion. Sorry to bring this up here but since we're stuck with "Swarm" I would love the doc to at least acknowledge that it's dealing with two different technologies and use some naming to help distinguish them. |
|
@gittycat |
|
@gittycat Rule of thumb: if there is a I usually refer to them as "Docker Services" for clarification. |
|
ping @sdurrheimer there's a lot of work waiting for you here 😰, PTAL |
|
@albers I see 😲, thx for the ping. |
|
kudos! i was actually using custom make scripts to do just this with almost equal commands!!! thanks for standardizing in 1.13! saved me from opening a ticket =) |

Fixes #13509
Fixes #8829
Fixes #8756
docker imageanddocker containercommandimages->image ls(with aliases)rmi->image rm(with aliases)ps->container ls(with aliases)image inspectandcontainer inspectto match the other command groupsdocker condocker imgdocker srvdocker netdocker vol