How to add bash command completion for Docker on Mac OS X?

前端 未结 8 418
渐次进展
渐次进展 2021-02-01 13:24

I am running docker and I want bash command completion for docker commands and parameters.

8条回答
  •  被撕碎了的回忆
    2021-02-01 13:36

    The auto completion of docker needed not only for mac, its also needed for ubuntu / bash terminals.

    In Ubuntu

    curl -ksSL https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker |sudo tee /etc/bash_completion.d/docker
    

    Completion will be available upon next login.

    Since its top result in google I added answer here.

提交回复
热议问题