Browse code

Add zsh completion for 'docker daemon --containerd'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
(cherry picked from commit 63b29eda68683bad2e375fee97b4d106a5ca5a77)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Steve Durrheimer authored on 2016/03/28 20:56:08
Showing 1 changed files
... ...
@@ -690,6 +690,7 @@ __docker_subcommand() {
690 690
                 "($help -b --bridge)"{-b=,--bridge=}"[Attach containers to a network bridge]:bridge:_net_interfaces" \
691 691
                 "($help)--bip=[Network bridge IP]:IP address: " \
692 692
                 "($help)--cgroup-parent=[Parent cgroup for all containers]:cgroup: " \
693
+                "($help)--containerd=[Path to containerd socket]:socket:_files -g \"*.sock\"" \
693 694
                 "($help -D --debug)"{-D,--debug}"[Enable debug mode]" \
694 695
                 "($help)--default-gateway[Container default gateway IPv4 address]:IPv4 address: " \
695 696
                 "($help)--default-gateway-v6[Container default gateway IPv6 address]:IPv6 address: " \
... ...
@@ -727,9 +728,9 @@ __docker_subcommand() {
727 727
                 "($help)--selinux-enabled[Enable selinux support]" \
728 728
                 "($help)*--storage-opt=[Storage driver options]:storage driver options: " \
729 729
                 "($help)--tls[Use TLS]" \
730
-                "($help)--tlscacert=[Trust certs signed only by this CA]:PEM file:_files -g "*.(pem|crt)"" \
731
-                "($help)--tlscert=[Path to TLS certificate file]:PEM file:_files -g "*.(pem|crt)"" \
732
-                "($help)--tlskey=[Path to TLS key file]:Key file:_files -g "*.(pem|key)"" \
730
+                "($help)--tlscacert=[Trust certs signed only by this CA]:PEM file:_files -g \"*.(pem|crt)\"" \
731
+                "($help)--tlscert=[Path to TLS certificate file]:PEM file:_files -g \"*.(pem|crt)\"" \
732
+                "($help)--tlskey=[Path to TLS key file]:Key file:_files -g \"*.(pem|key)\"" \
733 733
                 "($help)--tlsverify[Use TLS and verify the remote]" \
734 734
                 "($help)--userns-remap=[User/Group setting for user namespaces]:user\:group:->users-groups" \
735 735
                 "($help)--userland-proxy[Use userland proxy for loopback traffic]" && ret=0