mirror of https://github.com/docker/cli.git
docs: fix missing anchors in swarm reference pages
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c99d3312eb
commit
8a1b096e76
|
@ -5,10 +5,10 @@ Manage join tokens
|
|||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|:----------------|:-------|:--------|:-------------------|
|
||||
| `-q`, `--quiet` | `bool` | | Only display token |
|
||||
| `--rotate` | `bool` | | Rotate join token |
|
||||
| Name | Type | Default | Description |
|
||||
|:------------------------------------|:-------|:--------|:-------------------|
|
||||
| [`-q`](#quiet), [`--quiet`](#quiet) | `bool` | | Only display token |
|
||||
| [`--rotate`](#rotate) | `bool` | | Rotate join token |
|
||||
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
@ -77,7 +77,7 @@ $ docker swarm join-token -q worker
|
|||
SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-b30ljddcqhef9b9v4rs7mel7t
|
||||
```
|
||||
|
||||
### `--rotate`
|
||||
### <a name="rotate"></a> `--rotate`
|
||||
|
||||
Because tokens allow new nodes to join the swarm, you should keep them secret.
|
||||
Be particularly careful with manager tokens since they allow new manager nodes
|
||||
|
@ -96,7 +96,7 @@ Rotating a join-token means that no new nodes will be able to join the swarm
|
|||
using the old token. Rotation does not affect existing nodes in the swarm
|
||||
because the join token is only used for authorizing new nodes joining the swarm.
|
||||
|
||||
### `--quiet`
|
||||
### <a name="quiet"></a> `--quiet`
|
||||
|
||||
Only print the token. Do not print a complete command for joining.
|
||||
|
||||
|
|
|
@ -5,13 +5,13 @@ Join a swarm as a node and/or manager
|
|||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|:-------------------|:------------|:---------------|:------------------------------------------------------------------------------|
|
||||
| `--advertise-addr` | `string` | | Advertised address (format: `<ip\|interface>[:port]`) |
|
||||
| `--availability` | `string` | `active` | Availability of the node (`active`, `pause`, `drain`) |
|
||||
| `--data-path-addr` | `string` | | Address or interface to use for data path traffic (format: `<ip\|interface>`) |
|
||||
| `--listen-addr` | `node-addr` | `0.0.0.0:2377` | Listen address (format: `<ip\|interface>[:port]`) |
|
||||
| `--token` | `string` | | Token for entry into the swarm |
|
||||
| Name | Type | Default | Description |
|
||||
|:--------------------------------------|:------------|:---------------|:------------------------------------------------------------------------------|
|
||||
| [`--advertise-addr`](#advertise-addr) | `string` | | Advertised address (format: `<ip\|interface>[:port]`) |
|
||||
| [`--availability`](#availability) | `string` | `active` | Availability of the node (`active`, `pause`, `drain`) |
|
||||
| [`--data-path-addr`](#data-path-addr) | `string` | | Address or interface to use for data path traffic (format: `<ip\|interface>`) |
|
||||
| [`--listen-addr`](#listen-addr) | `node-addr` | `0.0.0.0:2377` | Listen address (format: `<ip\|interface>[:port]`) |
|
||||
| [`--token`](#token) | `string` | | Token for entry into the swarm |
|
||||
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
@ -57,7 +57,7 @@ dkp8vy1dq1kxleu9g4u78tlag worker1 Ready Active Reachable
|
|||
dvfxp4zseq4s0rih1selh0d20 * manager1 Ready Active Leader
|
||||
```
|
||||
|
||||
### `--listen-addr value`
|
||||
### <a name="listen-addr"></a> `--listen-addr value`
|
||||
|
||||
If the node is a manager, it will listen for inbound swarm manager traffic on this
|
||||
address. The default is to listen on 0.0.0.0:2377. It is also possible to specify a
|
||||
|
@ -68,7 +68,7 @@ name, the default port 2377 will be used.
|
|||
|
||||
This flag is generally not necessary when joining an existing swarm.
|
||||
|
||||
### `--advertise-addr value`
|
||||
### <a name="advertise-addr"></a> `--advertise-addr value`
|
||||
|
||||
This flag specifies the address that will be advertised to other members of the
|
||||
swarm for API access. If unspecified, Docker will check if the system has a
|
||||
|
@ -88,7 +88,7 @@ you're joining new nodes through a load balancer, you should use this flag to
|
|||
ensure the node advertises its IP address and not the IP address of the load
|
||||
balancer.
|
||||
|
||||
### `--data-path-addr`
|
||||
### <a name="data-path-addr"></a> `--data-path-addr`
|
||||
|
||||
This flag specifies the address that global scope network drivers will publish towards
|
||||
other nodes in order to reach the containers running on this node.
|
||||
|
@ -97,11 +97,11 @@ management traffic of the cluster.
|
|||
If unspecified, Docker will use the same IP address or interface that is used for the
|
||||
advertise address.
|
||||
|
||||
### `--token string`
|
||||
### <a name="token"></a> `--token string`
|
||||
|
||||
Secret value required for nodes to join the swarm
|
||||
|
||||
### `--availability`
|
||||
### <a name="availability"></a> `--availability`
|
||||
|
||||
This flag specifies the availability of the node at the time the node joins a master.
|
||||
Possible availability values are `active`, `pause`, or `drain`.
|
||||
|
|
|
@ -5,10 +5,10 @@ Manage the unlock key
|
|||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|:----------------|:-------|:--------|:-------------------|
|
||||
| `-q`, `--quiet` | `bool` | | Only display token |
|
||||
| `--rotate` | `bool` | | Rotate unlock key |
|
||||
| Name | Type | Default | Description |
|
||||
|:------------------------------------|:-------|:--------|:-------------------|
|
||||
| [`-q`](#quiet), [`--quiet`](#quiet) | `bool` | | Only display token |
|
||||
| [`--rotate`](#rotate) | `bool` | | Rotate unlock key |
|
||||
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
@ -67,12 +67,12 @@ $ docker swarm unlock-key -q
|
|||
SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8
|
||||
```
|
||||
|
||||
### `--rotate`
|
||||
### <a name="rotate"></a> `--rotate`
|
||||
|
||||
This flag rotates the unlock key, replacing it with a new randomly-generated
|
||||
key. The old unlock key will no longer be accepted.
|
||||
|
||||
### `--quiet`
|
||||
### <a name="quiet"></a> `--quiet`
|
||||
|
||||
Only print the unlock key, without instructions.
|
||||
|
||||
|
|
Loading…
Reference in New Issue