github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/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 --cert-expiry duration Validity period for node certificates (default 2160h0m0s) 25 --dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s) 26 --external-ca value Specifications of one or more certificate signing endpoints 27 --help Print usage 28 --task-history-limit int Task history retention limit (default 5) 29 ``` 30 31 Updates a swarm with new parameter values. This command must target a manager node. 32 33 34 ```bash 35 $ docker swarm update --cert-expiry 720h 36 ``` 37 38 ## Related information 39 40 * [swarm init](swarm_init.md) 41 * [swarm join](swarm_join.md) 42 * [swarm leave](swarm_leave.md)