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
Bash completion for docker compose
doesn't work
#3816
Comments
Hi Maintainers, I would like to look into this issue. Could anyone help me a little for starting on this like which major files could I start looking into? Thanks! |
docker compose
doesn't workdocker compose
doesn't work
@jhdxr Thanks for the help. |
@sloanlance I think the issue is from the docker compose plugin https://github.com/docker/compose/ instead of this cli package. It also shows that you have installed the Docker Compose plugin in the shared docker info
You can open a similar issue there and can link this issue in the description. Also, please add your reply in this chat thread relating to the newly opened issue in the compose repo. I am currently working on this, will be creating a pull request in that project. |
This may be fixed by #3752. Are you still having this issue on the latest version? |
In the latest version of Docker Engine - Community running on Ubuntu 20.04, the However, I'm running the latest version of Docker Desktop for Mac and the built in bash completion does not work. This is the one that is a symlink:
If I download the Docker completion file directly from GitHub and manually install it:
The Hopefully subsequent updates of Docker Desktop don't overwrite my custom downloaded file. Update: |
ok, thank you. I'm closing the issue here in favour of docker/for-mac#6642. |
Edit: Created issue 4034 I am still having a completion issue with respect to the |
Description
The Bash completion for
docker compose
(note: this is not for the version with a dash,docker-compose
) doesn't work. When I press the completion key (the ⇥ TAB key in my case), it doesn't show any of the subcommands or options. If I enterdocker compose -
, then press the completion key, it should show the options, but does not.Not only does it not complete the commands and options, it is preventing Bash from doing any of its usual completion. For example, if my compose file is not the standard
docker-compose.yml
and I want to specify a new name, then I need to typedocker compose -f
followed by the filename. However, if I try to use Bash's completion to fill in that filename, it will not do it. Bash simply beeps at me to say there are no completions available. However, I can see the name of my file right there in the file listing.Reproduce
Type…
Expected behavior
Bash should show the subcommands, options, and also let me use completion to pick out the related filenames.
docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: