2016-06-13 19:57:19 -07:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
|
|
|
title = "swarm update"
|
|
|
|
description = "The swarm update command description and usage"
|
|
|
|
keywords = ["swarm, update"]
|
2016-06-20 11:54:53 +00:00
|
|
|
advisory = "rc"
|
2016-06-13 19:57:19 -07:00
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# swarm update
|
|
|
|
|
2016-06-14 17:36:37 -07:00
|
|
|
Usage: docker swarm update [OPTIONS]
|
2016-06-17 13:30:17 -07:00
|
|
|
|
2016-06-14 17:36:37 -07:00
|
|
|
update the Swarm.
|
2016-06-17 13:30:17 -07:00
|
|
|
|
2016-06-14 17:36:37 -07:00
|
|
|
Options:
|
|
|
|
--auto-accept value Auto acceptance policy (worker, manager or none)
|
|
|
|
--dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s)
|
|
|
|
--help Print usage
|
|
|
|
--secret string Set secret value needed to accept nodes into cluster
|
|
|
|
--task-history-limit int Task history retention limit (default 10)
|
2016-06-13 19:57:19 -07:00
|
|
|
|
|
|
|
Updates a Swarm cluster with new parameter values. This command must target a manager node.
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker swarm update --auto-accept manager
|
|
|
|
```
|
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [swarm init](swarm_init.md)
|
|
|
|
* [swarm join](swarm_join.md)
|
|
|
|
* [swarm leave](swarm_leave.md)
|