mirror of https://github.com/docker/cli.git
[completion/zsh] add volume completion
This provides completion for `docker run ... -v <TAB>`. This closes (part of) #1997. Signed-off-by: Paul Seyfert <pseyfert.mathphys@gmail.com>
This commit is contained in:
parent
70a00157f1
commit
35b42efad3
|
@ -661,7 +661,7 @@ __docker_container_subcommand() {
|
||||||
"($help)*--ulimit=[ulimit options]:ulimit: "
|
"($help)*--ulimit=[ulimit options]:ulimit: "
|
||||||
"($help)--userns=[Container user namespace]:user namespace:(host)"
|
"($help)--userns=[Container user namespace]:user namespace:(host)"
|
||||||
"($help)--tmpfs[mount tmpfs]"
|
"($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)--volume-driver=[Optional volume driver for the container]:volume driver:(local)"
|
||||||
"($help)*--volumes-from=[Mount volumes from the specified container]:volume: "
|
"($help)*--volumes-from=[Mount volumes from the specified container]:volume: "
|
||||||
"($help -w --workdir)"{-w=,--workdir=}"[Working directory inside the container]:directory:_directories"
|
"($help -w --workdir)"{-w=,--workdir=}"[Working directory inside the container]:directory:_directories"
|
||||||
|
|
Loading…
Reference in New Issue