Browse Source

Update bash and zsh completion for `service create/update --read-only`

This commit updates bash and zsh completion for flag `--read-only`
in `service create/update`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Yong Tang 8 years ago
parent
commit
885e1f250a
2 changed files with 2 additions and 0 deletions
  1. 1 0
      contrib/completion/bash/docker
  2. 1 0
      contrib/completion/zsh/_docker

+ 1 - 0
contrib/completion/bash/docker

@@ -2829,6 +2829,7 @@ _docker_service_update() {
 
 	local boolean_options="
 		--help
+		--read-only
 		--tty -t
 		--with-registry-auth
 	"

+ 1 - 0
contrib/completion/zsh/_docker

@@ -1795,6 +1795,7 @@ __docker_service_subcommand() {
         "($help)*--network=[Network attachments]:network: "
         "($help)--no-healthcheck[Disable any container-specified HEALTHCHECK]"
         "($help)*"{-p=,--publish=}"[Publish a port as a node port]:port: "
+        "($help)--read-only[Mount the container's root filesystem as read only]"
         "($help)--replicas=[Number of tasks]:replicas: "
         "($help)--reserve-cpu=[Reserve CPUs]:value: "
         "($help)--reserve-memory=[Reserve Memory]:value: "