From fa29084b3150d105bf9506f5ad6f9b7b9d6c2e9c Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 14 Jul 2016 11:22:18 +0200 Subject: [PATCH] Update service update commandline reference docs Update with the new remove flags Signed-off-by: Vincent Demeester --- docs/reference/commandline/service_update.md | 22 +++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/reference/commandline/service_update.md b/docs/reference/commandline/service_update.md index 5e76fd0d7a..290946c846 100644 --- a/docs/reference/commandline/service_update.md +++ b/docs/reference/commandline/service_update.md @@ -17,19 +17,25 @@ Usage: docker service update [OPTIONS] SERVICE Update a service 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) - -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 --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-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 - --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 --replicas value Number of tasks (default none) --reserve-cpu value Reserve CPUs (default 0.000) @@ -54,7 +60,7 @@ for further information. ### Update a service ```bash -$ docker service update --limit-cpu 2 redis +$ docker service update --limit-cpu 2 redis ``` ## Related information