Browse Source

Update service update commandline reference docs

Update with the new remove flags

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
(cherry picked from commit dbe310eff05cf5b67eab99d3cfff66c2680d01ac)
Signed-off-by: Tibor Vass <tibor@docker.com>
Vincent Demeester 9 years ago
parent
commit
e04733a67e
1 changed files with 14 additions and 8 deletions
  1. 14 8
      docs/reference/commandline/service_update.md

+ 14 - 8
docs/reference/commandline/service_update.md

@@ -18,19 +18,25 @@ Usage:  docker service update [OPTIONS] SERVICE
 Update a service
 Update a service
 
 
 Options:
 Options:
-      --arg value                    Service command args (default [])
-      --constraint value             Placement constraints (default [])
+      --args string                  Service command args
+      --constraint-add value         Add or update placement constraints (default [])
+      --constraint-rm value          Remove a constraint (default [])
       --endpoint-mode string         Endpoint mode (vip or dnsrr)
       --endpoint-mode string         Endpoint mode (vip or dnsrr)
-  -e, --env value                    Set environment variables (default [])
+      --env-add value                Add or update environment variables (default [])
+      --env-rm value                 Remove an environment variable (default [])
       --help                         Print usage
       --help                         Print usage
       --image string                 Service image tag
       --image string                 Service image tag
-  -l, --label value                  Service labels (default [])
+      --label-add value              Add or update service labels (default [])
+      --label-rm value               Remove a label by its key (default [])
       --limit-cpu value              Limit CPUs (default 0.000)
       --limit-cpu value              Limit CPUs (default 0.000)
       --limit-memory value           Limit Memory (default 0 B)
       --limit-memory value           Limit Memory (default 0 B)
-      --mount value                  Attach a mount to the service
+      --mount-add value              Add or update a mount on a service
+      --mount-rm value               Remove a mount by its target path (default [])
       --name string                  Service name
       --name string                  Service name
-      --network value                Network attachments (default [])
-  -p, --publish value                Publish a port as a node port (default [])
+      --network-add value            Add or update network attachments (default [])
+      --network-rm value             Remove a network by name (default [])
+      --publish-add value            Add or update a published port (default [])
+      --publish-rm value             Remove a published port by its target port (default [])
       --registry-auth                Send registry authentication details to Swarm agents
       --registry-auth                Send registry authentication details to Swarm agents
       --replicas value               Number of tasks (default none)
       --replicas value               Number of tasks (default none)
       --reserve-cpu value            Reserve CPUs (default 0.000)
       --reserve-cpu value            Reserve CPUs (default 0.000)
@@ -55,7 +61,7 @@ for further information.
 ### Update a service
 ### Update a service
 
 
 ```bash
 ```bash
-$ docker service update --limit-cpu 2 redis 
+$ docker service update --limit-cpu 2 redis
 ```
 ```
 
 
 ## Related information
 ## Related information