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