swarm update

Update the swarm

Options

NameTypeDefaultDescription
--autolockboolChange manager autolocking setting (true|false)
--cert-expiryduration2160h0m0sValidity period for node certificates (ns|us|ms|s|m|h)
--dispatcher-heartbeatduration5sDispatcher heartbeat period (ns|us|ms|s|m|h)
--external-caexternal-caSpecifications of one or more certificate signing endpoints
--max-snapshotsuint640Number of additional Raft snapshots to retain
--snapshot-intervaluint6410000Number of log entries between Raft snapshots
--task-history-limitint645Task history retention limit

Description

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.

Examples

$ docker swarm update --cert-expiry 720h

Related commands