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 |
There was a problem hiding this comment.
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.
That's a good point. Maybe it belongs with login and logout under another top-level command?
There was a problem hiding this comment.
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.
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 Proposal: Add a 'docker image' command #13509
Fixes Preserve / improve consistency in CLI UX: use
docker <object> <verb>#8829Fixes Proposal: Group available commands in the command line help text into "general", "image centric" and "container centric" #8756
create a new
docker imageanddocker containercommandadd the image and container commands as subcommands of the new command groups with a few commands renamed:
images->image ls(with aliases)rmi->image rm(with aliases)ps->container ls(with aliases)add
image inspectandcontainer inspectto match the other command groupsadd 3-letter allises for all commands groups
docker condocker imgdocker srvdocker netdocker vol