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
Update docker service constraint tab auto completion #32296
Conversation
Signed-off-by: Josh <josh@kelly.camera>
Issue link here Not sure if GordonTheTurtle's reply was automated or not, assuming it was but thanks either way. It's incredibly helpful |
@@ -3035,7 +3035,8 @@ _docker_service_update_and_create() { | |||
|
|||
if [ "$subcommand" = "create" ] ; then | |||
options_with_args="$options_with_args | |||
--constraint | |||
--constraint-add | |||
--constraint-rm |
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.
This doesn't look right, because docker service create
only has --constraint
, not --constraint-add
/ --constraint-rm
. The completion for that is done in the if [ "$subcommand" = "update" ]
section; https://github.com/docker/docker/blob/1ecaed0a99331ff6140e0a714e1b50d466597775/contrib/completion/bash/docker#L3085-L3089
Can you check if you have the latest version of the completion script installed on your machine? This completion works for me without this change |
Damn, I appear to modified the wrong command. Create already had the correct commands attached to it but I'm still getting the wrong autocompletion for update. I believe I'm on the most up to date version but are there any extra steps I can take to test if I am on the right auto completion version? |
You can check the file in |
Let me close this PR, because this issue is already fixed, but feel free to continue the discussion |
Sorry about that, my fault for not properly checking things and getting ahead of myself. Is there a specific spot where I can find up to date instructions on how to install and keep docker up to date? So far everyone has said not to use apt-get and use specific repositories but that one says I'm up to date. |
basically, if you add the right repository, you can either "pin" a specific version, or do We recently switched to a different version scheme, and package names. Previously the package was named The There's now two release channels; "edge" (a monthly release), and "stable" (released every 3 months, with a 4-month "support" for critical bugfixes and security issues). To get just the "stable" updates, only enable the "stable" repository, and to get both "stable" and "edge" (monthly) updates, enable both repositories. The installation instructions can be found here; https://docs.docker.com/engine/installation/linux/ubuntu/, and also mention removing "docker-engine" before installing "docker-ce" (although I think it goes automatically if you install the |
Awesome, thank you! |
- What I did
Altered the tab completion results for docker service update
- How I did it
Changed contrib/completion/bash/docker to reflect the new results
- How to verify it
Attempt a tab completion with a successfully built docker version
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)