github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/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  <!-- This file is maintained within the docker/cli GitHub
     8       repository at https://github.com/docker/cli/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # swarm update
    17  
    18  ```markdown
    19  Usage:  docker swarm update [OPTIONS]
    20  
    21  Update the swarm
    22  
    23  Options:
    24        --autolock                        Change manager autolocking setting (true|false)
    25        --cert-expiry duration            Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)
    26        --dispatcher-heartbeat duration   Dispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s)
    27        --external-ca external-ca         Specifications of one or more certificate signing endpoints
    28        --help                            Print usage
    29        --max-snapshots uint              Number of additional Raft snapshots to retain
    30        --snapshot-interval uint          Number of log entries between Raft snapshots (default 10000)
    31        --task-history-limit int          Task history retention limit (default 5)
    32  ```
    33  
    34  ## Description
    35  
    36  Updates a swarm with new parameter values. This command must target a manager node.
    37  
    38  ## Examples
    39  
    40  ```bash
    41  $ docker swarm update --cert-expiry 720h
    42  ```
    43  
    44  ## Related commands
    45  
    46  * [swarm ca](swarm_ca.md)
    47  * [swarm init](swarm_init.md)
    48  * [swarm join](swarm_join.md)
    49  * [swarm join-token](swarm_join_token.md)
    50  * [swarm leave](swarm_leave.md)
    51  * [swarm unlock](swarm_unlock.md)
    52  * [swarm unlock-key](swarm_unlock_key.md)