Signed-off-by: Kei Ohmura <ohmura.kei@gmail.com>
| ... | ... |
@@ -171,8 +171,8 @@ func parseExternalCA(caSpec string) (*swarm.ExternalCA, error) {
|
| 171 | 171 |
|
| 172 | 172 |
func addSwarmFlags(flags *pflag.FlagSet, opts *swarmOptions) {
|
| 173 | 173 |
flags.Int64Var(&opts.taskHistoryLimit, flagTaskHistoryLimit, 5, "Task history retention limit") |
| 174 |
- flags.DurationVar(&opts.dispatcherHeartbeat, flagDispatcherHeartbeat, time.Duration(5*time.Second), "Dispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s)") |
|
| 175 |
- flags.DurationVar(&opts.nodeCertExpiry, flagCertExpiry, time.Duration(90*24*time.Hour), "Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)") |
|
| 174 |
+ flags.DurationVar(&opts.dispatcherHeartbeat, flagDispatcherHeartbeat, time.Duration(5*time.Second), "Dispatcher heartbeat period (ns|us|ms|s|m|h)") |
|
| 175 |
+ flags.DurationVar(&opts.nodeCertExpiry, flagCertExpiry, time.Duration(90*24*time.Hour), "Validity period for node certificates (ns|us|ms|s|m|h)") |
|
| 176 | 176 |
flags.Var(&opts.externalCA, flagExternalCA, "Specifications of one or more certificate signing endpoints") |
| 177 | 177 |
flags.Uint64Var(&opts.maxSnapshots, flagMaxSnapshots, 0, "Number of additional Raft snapshots to retain") |
| 178 | 178 |
flags.Uint64Var(&opts.snapshotInterval, flagSnapshotInterval, 10000, "Number of log entries between Raft snapshots") |
| ... | ... |
@@ -21,7 +21,7 @@ Usage: docker swarm init [OPTIONS] |
| 21 | 21 |
Initialize a swarm |
| 22 | 22 |
|
| 23 | 23 |
Options: |
| 24 |
- --advertise-addr value Advertised address (format: <ip|interface>[:port]) |
|
| 24 |
+ --advertise-addr string Advertised address (format: <ip|interface>[:port]) |
|
| 25 | 25 |
--autolock Enable manager autolocking (requiring an unlock key to start a stopped manager) |
| 26 | 26 |
--cert-expiry duration Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s) |
| 27 | 27 |
--dispatcher-heartbeat duration Dispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s) |