Conversation
|
Design was approved in the preceding PR, and it seems to be in line with the earlier discussions, so I suggest we directly go to code review. |
|
ping @albers for reviewing completion scripts :-) ❤️ |
4b1f64b to
e03479c
Compare
contrib/completion/bash/docker
Outdated
There was a problem hiding this comment.
The preceding three options are not boolean and should call _filedir
There was a problem hiding this comment.
I don't know much about _filedir would you mind showing me a fix?
There was a problem hiding this comment.
See the completion for --pidfile|-p|--tlscacert|--tlscert|--tlskey) in _docker_daemon().
By the way. if you would prefer to concentrate on real coding stuff, I could take over the bash completion part. Just give me a ping.
There was a problem hiding this comment.
--tlscacert|--tlscert|--tlskey should also be removed from _docker_daemon() as they are already treated globally in _docker_docker()
|
@thaJeztah I added some comments and I offer to take over the bash completion part. It's a bit more complex than usual and quite hacky. |
|
Thanks so much @albers, I knew this was quite a big change, so happy to have you on board here! @tiborvass what's the easiest way for @albers to carry the bash completion? |
|
@thaJeztah I can remove it or leave it as-is for now until we have some more review on the docker side of things. |
|
I think it's better to remove the completion part here. It will leave the remaining part more focussed and my follow up PR more self-contained. |
|
Thanks @albers! |
api/client/help.go
Outdated
😻 LGTM after a rebase 😉 |
contrib/vagrant-docker/README.md
Outdated
There was a problem hiding this comment.
does docker daemon -H=tcp://0.0.0.0:2375 also work?
There was a problem hiding this comment.
Aside from the technical aspect, IMHO the =argsyntax is confusing when used on a short option. It is very common for the long form options but I cannot recall having seen this elsewhere before.
I recommend using either -H tcp://0.0.0.0:2375 or --host=tcp://0.0.0.0:2375
|
rebase needed |
|
and probably a squash |
|
@calavera that shows you're not testing this PR :) |
|
oh, much better! thanks |
|
The new changes also LGTM |
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com> Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
There was a problem hiding this comment.
what if its not an initErr ?
There was a problem hiding this comment.
then it moves on to if len(args) > 0
There was a problem hiding this comment.
well yea, I got that. Just expected it to do something with it. I guess we'll deal with it at line 93.
There was a problem hiding this comment.
I kept the logic from before: https://github.com/docker/docker/blob/37209190c76de66531acba848f1537da2899e32d/api/client/cli.go#L90
|
way too much code to review :-) but it seems good. We can fix any bugs that pop-up later. |
|
no going back now ;) |
|
@tiborvass |
|
Oh yes!! I did a quick scan of the docs changes and the changes LGTM, I hope we got them all :-) |
|
ping @albers - hope you are able to work on the completion scripts now 😄 |
|
It will take about one week until I can get back to it. I'm reopening #13934 to indicate that it's in progress. |
|
Thanks for the heads-up, @albers! |
|
Finally, this might have been one of the Oldest Patchsets/requests. Thanks. |
|
Thank you @rhatdan, IIRC, you started this PR-relay originally 👍 |
|
@sdurrheimer Hi Steve, docker -d was replaced by the new |
|
Think we need the fish completions updated as well; I think those are auto-generated |
Replace the deprecated `-d` command line flag with the new command name `daemon`. See moby/moby#13771 for details.
Fixes #9677
This patch creates a new cli package that allows to combine both client
and daemon commands (there is only one daemon command: docker daemon).
The
-dand--daemontop-level flags are deprecated and a specialmessage is added to prompt the user to use
docker daemon.Providing top-level daemon-specific flags for client commands result
in an error message prompting the user to use
docker daemon.This patch does not break any old but correct usages.
Signed-off-by: Tibor Vass tibor@docker.com
Thanks to @rhatdan and @shishir-a412ed for their huge patience and their initial work.
Ref #6055 #9255 #10535 #11418