Skip to content

Commit

Permalink
Add "auto-accept=none" to documentation
Browse files Browse the repository at this point in the history
The "none" option was not added to the documentation.
This adds an example, and adds additional information
on manually accepting or rejecting a node.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jul 12, 2016
1 parent 79432b4 commit 0651775
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/reference/commandline/swarm_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ with auto-acceptance of both `worker` and `manager` nodes
$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept worker,manager
```

To disable auto acceptance, use the `none` option. Note that this option cannot
be combined with other values. When disabling auto acceptance, nodes must be
manually accepted or rejected using `docker node accept` or `docker node rm`.

The following example enables swarm mode with auto acceptance disabled:

```bash
$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept none
```

### `--cert-expiry`

This flag sets the validity period for node certificates.
Expand Down Expand Up @@ -110,3 +120,5 @@ This flag sets up task history retention limit.
* [swarm join](swarm_join.md)
* [swarm leave](swarm_leave.md)
* [swarm update](swarm_update.md)
* [node accept](node_accept.md)
* [node rm](node_rm.md)

0 comments on commit 0651775

Please sign in to comment.