Add support for comma-separated --auto-accept syntax.
Signed-off-by: John Harris <john@johnharris.io>
This commit is contained in:
parent
670a0b8077
commit
2f3e095768
@ -17,7 +17,7 @@ Usage: docker swarm init [OPTIONS]
|
|||||||
Initialize a Swarm
|
Initialize a Swarm
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--auto-accept value Auto acceptance policy (worker, manager or none)
|
--auto-accept value Auto acceptance policy (default worker)
|
||||||
--cert-expiry duration Validity period for node certificates (default 2160h0m0s)
|
--cert-expiry duration Validity period for node certificates (default 2160h0m0s)
|
||||||
--dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s)
|
--dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s)
|
||||||
--external-ca value Specifications of one or more certificate signing endpoints
|
--external-ca value Specifications of one or more certificate signing endpoints
|
||||||
@ -66,6 +66,13 @@ For example, the following initializes a cluster with auto-acceptance of workers
|
|||||||
$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept worker
|
$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept worker
|
||||||
```
|
```
|
||||||
|
|
||||||
|
It is possible to pass a comma-separated list of node types. The following initializes a cluster
|
||||||
|
with auto-acceptance of both `worker` and `manager` nodes
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept worker,manager
|
||||||
|
```
|
||||||
|
|
||||||
### `--cert-expiry`
|
### `--cert-expiry`
|
||||||
|
|
||||||
This flag sets the validity period for node certificates.
|
This flag sets the validity period for node certificates.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user