Add support for comma-separated --auto-accept syntax.

Signed-off-by: John Harris <john@johnharris.io>
This commit is contained in:
johnharris85 2016-06-29 14:01:25 -07:00 committed by Tibor Vass
parent 670a0b8077
commit 2f3e095768

View File

@ -17,7 +17,7 @@ Usage: docker swarm init [OPTIONS]
Initialize a Swarm
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)
--dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s)
--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
```
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`
This flag sets the validity period for node certificates.