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>
| ... | ... |
@@ -18,19 +18,25 @@ Usage: docker service update [OPTIONS] SERVICE |
| 18 | 18 |
Update a service |
| 19 | 19 |
|
| 20 | 20 |
Options: |
| 21 |
- --arg value Service command args (default []) |
|
| 22 |
- --constraint value Placement constraints (default []) |
|
| 21 |
+ --args string Service command args |
|
| 22 |
+ --constraint-add value Add or update placement constraints (default []) |
|
| 23 |
+ --constraint-rm value Remove a constraint (default []) |
|
| 23 | 24 |
--endpoint-mode string Endpoint mode (vip or dnsrr) |
| 24 |
- -e, --env value Set environment variables (default []) |
|
| 25 |
+ --env-add value Add or update environment variables (default []) |
|
| 26 |
+ --env-rm value Remove an environment variable (default []) |
|
| 25 | 27 |
--help Print usage |
| 26 | 28 |
--image string Service image tag |
| 27 |
- -l, --label value Service labels (default []) |
|
| 29 |
+ --label-add value Add or update service labels (default []) |
|
| 30 |
+ --label-rm value Remove a label by its key (default []) |
|
| 28 | 31 |
--limit-cpu value Limit CPUs (default 0.000) |
| 29 | 32 |
--limit-memory value Limit Memory (default 0 B) |
| 30 |
- --mount value Attach a mount to the service |
|
| 33 |
+ --mount-add value Add or update a mount on a service |
|
| 34 |
+ --mount-rm value Remove a mount by its target path (default []) |
|
| 31 | 35 |
--name string Service name |
| 32 |
- --network value Network attachments (default []) |
|
| 33 |
- -p, --publish value Publish a port as a node port (default []) |
|
| 36 |
+ --network-add value Add or update network attachments (default []) |
|
| 37 |
+ --network-rm value Remove a network by name (default []) |
|
| 38 |
+ --publish-add value Add or update a published port (default []) |
|
| 39 |
+ --publish-rm value Remove a published port by its target port (default []) |
|
| 34 | 40 |
--registry-auth Send registry authentication details to Swarm agents |
| 35 | 41 |
--replicas value Number of tasks (default none) |
| 36 | 42 |
--reserve-cpu value Reserve CPUs (default 0.000) |
| ... | ... |
@@ -55,7 +61,7 @@ for further information. |
| 55 | 55 |
### Update a service |
| 56 | 56 |
|
| 57 | 57 |
```bash |
| 58 |
-$ docker service update --limit-cpu 2 redis |
|
| 58 |
+$ docker service update --limit-cpu 2 redis |
|
| 59 | 59 |
``` |
| 60 | 60 |
|
| 61 | 61 |
## Related information |