github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/swarm_update.md (about) 1 --- 2 title: "swarm update" 3 description: "The swarm update command description and usage" 4 keywords: "swarm, update" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # swarm update 17 18 ```markdown 19 Usage: docker swarm update [OPTIONS] 20 21 Update the swarm 22 23 Options: 24 --autolock Change manager autolocking setting (true|false) 25 --cert-expiry duration Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s) 26 --dispatcher-heartbeat duration Dispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s) 27 --external-ca external-ca Specifications of one or more certificate signing endpoints 28 --help Print usage 29 --max-snapshots uint Number of additional Raft snapshots to retain 30 --snapshot-interval uint Number of log entries between Raft snapshots (default 10000) 31 --task-history-limit int Task history retention limit (default 5) 32 ``` 33 34 Updates a swarm with new parameter values. This command must target a manager node. 35 36 37 ```bash 38 $ docker swarm update --cert-expiry 720h 39 ``` 40 41 ## Related information 42 43 * [swarm init](swarm_init.md) 44 * [swarm join](swarm_join.md) 45 * [swarm join-token](swarm_join_token.md) 46 * [swarm leave](swarm_leave.md) 47 * [swarm unlock](swarm_unlock.md) 48 * [swarm unlock-key](swarm_unlock_key.md)