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>
| ... | ... |
@@ -73,6 +73,16 @@ with auto-acceptance of both `worker` and `manager` nodes |
| 73 | 73 |
$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept worker,manager |
| 74 | 74 |
``` |
| 75 | 75 |
|
| 76 |
+To disable auto acceptance, use the `none` option. Note that this option cannot |
|
| 77 |
+be combined with other values. When disabling auto acceptance, nodes must be |
|
| 78 |
+manually accepted or rejected using `docker node accept` or `docker node rm`. |
|
| 79 |
+ |
|
| 80 |
+The following example enables swarm mode with auto acceptance disabled: |
|
| 81 |
+ |
|
| 82 |
+```bash |
|
| 83 |
+$ docker swarm init --listen-addr 192.168.99.121:2377 --auto-accept none |
|
| 84 |
+``` |
|
| 85 |
+ |
|
| 76 | 86 |
### `--cert-expiry` |
| 77 | 87 |
|
| 78 | 88 |
This flag sets the validity period for node certificates. |
| ... | ... |
@@ -110,3 +120,5 @@ This flag sets up task history retention limit. |
| 110 | 110 |
* [swarm join](swarm_join.md) |
| 111 | 111 |
* [swarm leave](swarm_leave.md) |
| 112 | 112 |
* [swarm update](swarm_update.md) |
| 113 |
+* [node accept](node_accept.md) |
|
| 114 |
+* [node rm](node_rm.md) |