github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/swarm_update.md (about) 1 # swarm update 2 3 <!---MARKER_GEN_START--> 4 Update the swarm 5 6 ### Options 7 8 | Name | Type | Default | Description | 9 |:-------------------------|:--------------|:------------|:------------------------------------------------------------| 10 | `--autolock` | | | Change manager autolocking setting (true\|false) | 11 | `--cert-expiry` | `duration` | `2160h0m0s` | Validity period for node certificates (ns\|us\|ms\|s\|m\|h) | 12 | `--dispatcher-heartbeat` | `duration` | `5s` | Dispatcher heartbeat period (ns\|us\|ms\|s\|m\|h) | 13 | `--external-ca` | `external-ca` | | Specifications of one or more certificate signing endpoints | 14 | `--max-snapshots` | `uint64` | `0` | Number of additional Raft snapshots to retain | 15 | `--snapshot-interval` | `uint64` | `10000` | Number of log entries between Raft snapshots | 16 | `--task-history-limit` | `int64` | `5` | Task history retention limit | 17 18 19 <!---MARKER_GEN_END--> 20 21 ## Description 22 23 Updates a swarm with new parameter values. 24 25 > **Note** 26 > 27 > This is a cluster management command, and must be executed on a swarm 28 > manager node. To learn about managers and workers, refer to the 29 > [Swarm mode section](https://docs.docker.com/engine/swarm/) in the 30 > documentation. 31 32 ## Examples 33 34 ```console 35 $ docker swarm update --cert-expiry 720h 36 ``` 37 38 ## Related commands 39 40 * [swarm ca](swarm_ca.md) 41 * [swarm init](swarm_init.md) 42 * [swarm join](swarm_join.md) 43 * [swarm join-token](swarm_join-token.md) 44 * [swarm leave](swarm_leave.md) 45 * [swarm unlock](swarm_unlock.md) 46 * [swarm unlock-key](swarm_unlock-key.md)