Update the swarm
Name | Type | Default | Description |
---|---|---|---|
--autolock | bool | Change manager autolocking setting (true|false) | |
--cert-expiry | duration | 2160h0m0s | Validity period for node certificates (ns|us|ms|s|m|h) |
--dispatcher-heartbeat | duration | 5s | Dispatcher heartbeat period (ns|us|ms|s|m|h) |
--external-ca | external-ca | Specifications of one or more certificate signing endpoints | |
--max-snapshots | uint64 | 0 | Number of additional Raft snapshots to retain |
--snapshot-interval | uint64 | 10000 | Number of log entries between Raft snapshots |
--task-history-limit | int64 | 5 | Task history retention limit |
Updates a swarm with new parameter values.
[!NOTE] This is a cluster management command, and must be executed on a swarm manager node. To learn about managers and workers, refer to the Swarm mode section in the documentation.
$ docker swarm update --cert-expiry 720h