mirror of https://github.com/docker/cli.git
Add zsh completion for 'docker daemon --userns-remap'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
36960be45f
commit
66cb79eb98
|
@ -634,6 +634,7 @@ __docker_subcommand() {
|
||||||
"($help)--tlscert=[Path to TLS certificate file]:PEM file:_files -g "*.(pem|crt)"" \
|
"($help)--tlscert=[Path to TLS certificate file]:PEM file:_files -g "*.(pem|crt)"" \
|
||||||
"($help)--tlskey=[Path to TLS key file]:Key file:_files -g "*.(pem|key)"" \
|
"($help)--tlskey=[Path to TLS key file]:Key file:_files -g "*.(pem|key)"" \
|
||||||
"($help)--tlsverify[Use TLS and verify the remote]" \
|
"($help)--tlsverify[Use TLS and verify the remote]" \
|
||||||
|
"($help)--userns-remap=[User/Group setting for user namespaces]:user\:group:->users-groups" \
|
||||||
"($help)--userland-proxy[Use userland proxy for loopback traffic]" && ret=0
|
"($help)--userland-proxy[Use userland proxy for loopback traffic]" && ret=0
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
|
@ -653,6 +654,14 @@ __docker_subcommand() {
|
||||||
_describe -t cluster-store-opts "Cluster Store Options" opts -qS "=" && ret=0
|
_describe -t cluster-store-opts "Cluster Store Options" opts -qS "=" && ret=0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
(users-groups)
|
||||||
|
if compset -P '*:'; then
|
||||||
|
_groups && ret=0
|
||||||
|
else
|
||||||
|
_describe -t userns-default "default Docker user management" '(default)' && ret=0
|
||||||
|
_users && ret=0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
(diff)
|
(diff)
|
||||||
|
|
Loading…
Reference in New Issue