github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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  # swarm update
     8  
     9  ```markdown
    10  Usage:  docker swarm update [OPTIONS]
    11  
    12  Update the swarm
    13  
    14  Options:
    15        --autolock                        Change manager autolocking setting (true|false)
    16        --cert-expiry duration            Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)
    17        --dispatcher-heartbeat duration   Dispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s)
    18        --external-ca external-ca         Specifications of one or more certificate signing endpoints
    19        --help                            Print usage
    20        --max-snapshots uint              Number of additional Raft snapshots to retain
    21        --snapshot-interval uint          Number of log entries between Raft snapshots (default 10000)
    22        --task-history-limit int          Task history retention limit (default 5)
    23  ```
    24  
    25  ## Description
    26  
    27  Updates a swarm with new parameter values.
    28  
    29  > **Note**
    30  >
    31  > This is a cluster management command, and must be executed on a swarm
    32  > manager node. To learn about managers and workers, refer to the
    33  > [Swarm mode section](https://docs.docker.com/engine/swarm/) in the
    34  > documentation.
    35  
    36  ## Examples
    37  
    38  ```bash
    39  $ docker swarm update --cert-expiry 720h
    40  ```
    41  
    42  ## Related commands
    43  
    44  * [swarm ca](swarm_ca.md)
    45  * [swarm init](swarm_init.md)
    46  * [swarm join](swarm_join.md)
    47  * [swarm join-token](swarm_join-token.md)
    48  * [swarm leave](swarm_leave.md)
    49  * [swarm unlock](swarm_unlock.md)
    50  * [swarm unlock-key](swarm_unlock-key.md)