1
0
mirror of https://github.com/docker/cli.git synced 2025-05-05 14:39:15 +03:00
David Karlsson f1befabe9f docs: use gh alert syntax for callouts
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-16 11:02:10 +02:00

1.8 KiB

swarm update

Update the swarm

Options

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

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