github.com/brahmaroutu/docker@v1.2.1-0.20160809185609-eb28dde01f16/docs/reference/commandline/swarm_update.md (about) 1 <!--[metadata]> 2 +++ 3 title = "swarm update" 4 description = "The swarm update command description and usage" 5 keywords = ["swarm, update"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # swarm update 12 13 ```markdown 14 Usage: docker swarm update [OPTIONS] 15 16 Update the swarm 17 18 Options: 19 --cert-expiry duration Validity period for node certificates (default 2160h0m0s) 20 --dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s) 21 --external-ca value Specifications of one or more certificate signing endpoints 22 --help Print usage 23 --task-history-limit int Task history retention limit (default 5) 24 ``` 25 26 Updates a swarm with new parameter values. This command must target a manager node. 27 28 29 ```bash 30 $ docker swarm update --cert-expiry 720h 31 ``` 32 33 ## Related information 34 35 * [swarm init](swarm_init.md) 36 * [swarm join](swarm_join.md) 37 * [swarm leave](swarm_leave.md)