Skip to content

Commit

Permalink
[completion/zsh] add volume completion
Browse files Browse the repository at this point in the history
This provides completion for `docker run ... -v <TAB>`.
This closes (part of) docker#1997.
  • Loading branch information
pseyfert committed Mar 4, 2021
1 parent 70a0015 commit f97d5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/zsh/_docker
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ __docker_container_subcommand() {
"($help)*--ulimit=[ulimit options]:ulimit: "
"($help)--userns=[Container user namespace]:user namespace:(host)"
"($help)--tmpfs[mount tmpfs]"
"($help)*-v[Bind mount a volume]:volume: "
"($help)*-v[Bind mount a volume]:volume:_directories -W / -P '/' -S '\:' -r '/ '"
"($help)--volume-driver=[Optional volume driver for the container]:volume driver:(local)"
"($help)*--volumes-from=[Mount volumes from the specified container]:volume: "
"($help -w --workdir)"{-w=,--workdir=}"[Working directory inside the container]:directory:_directories"
Expand Down

0 comments on commit f97d5aa

Please sign in to comment.