Answer the question
In order to leave comments, you need to log in
Why is `complete docker` not defined, but bash docker completion works?
As far as I know, bash defines completion rules based on the bash completion extension, whose basic rules are stored in /etc/bash_completion.d. I have there:
apport_completion darcs docker-compose grub apt-linux-mint dkms git-prompt
As you can see, docker-compose is among them. We check:
$ complete -p docker-compose
complete -F _docker_compose docker-compose
$ complete -p docker
bash: complete: docker: нет определения завершения
docker run -it --rm -v "$PWD":/wd -w /wd -u $(id -u):$(id -g)
with saving autocompletion, but faced such a problem.
Answer the question
In order to leave comments, you need to log in
The autocompletion list from the docker-ce-cli package is put into/usr/share/bash-completion/completions/docker
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question