|
@@ -3592,6 +3592,7 @@ Initialize a new Swarm
|
|
|
|
|
|
{
|
|
{
|
|
"ListenAddr": "0.0.0.0:4500",
|
|
"ListenAddr": "0.0.0.0:4500",
|
|
|
|
+ "AdvertiseAddr": "192.168.1.1:4500",
|
|
"ForceNewCluster": false,
|
|
"ForceNewCluster": false,
|
|
"Spec": {
|
|
"Spec": {
|
|
"Orchestration": {},
|
|
"Orchestration": {},
|
|
@@ -3620,6 +3621,11 @@ JSON Parameters:
|
|
address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port
|
|
address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port
|
|
number, like `eth0:4567`. If the port number is omitted, the default swarm listening port is
|
|
number, like `eth0:4567`. If the port number is omitted, the default swarm listening port is
|
|
used.
|
|
used.
|
|
|
|
+- **AdvertiseAddr** – Externally reachable address advertised to other nodes. This can either be
|
|
|
|
+ an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port
|
|
|
|
+ number, like `eth0:4567`. If the port number is omitted, the port number from the listen
|
|
|
|
+ address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when
|
|
|
|
+ possible.
|
|
- **ForceNewCluster** – Force creating a new Swarm even if already part of one.
|
|
- **ForceNewCluster** – Force creating a new Swarm even if already part of one.
|
|
- **Spec** – Configuration settings of the new Swarm.
|
|
- **Spec** – Configuration settings of the new Swarm.
|
|
- **Orchestration** – Configuration settings for the orchestration aspects of the Swarm.
|
|
- **Orchestration** – Configuration settings for the orchestration aspects of the Swarm.
|
|
@@ -3660,6 +3666,7 @@ Join an existing new Swarm
|
|
|
|
|
|
{
|
|
{
|
|
"ListenAddr": "0.0.0.0:4500",
|
|
"ListenAddr": "0.0.0.0:4500",
|
|
|
|
+ "AdvertiseAddr": "192.168.1.1:4500",
|
|
"RemoteAddrs": ["node1:4500"],
|
|
"RemoteAddrs": ["node1:4500"],
|
|
"JoinToken": "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2"
|
|
"JoinToken": "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2"
|
|
}
|
|
}
|
|
@@ -3680,6 +3687,11 @@ JSON Parameters:
|
|
|
|
|
|
- **ListenAddr** – Listen address used for inter-manager communication if the node gets promoted to
|
|
- **ListenAddr** – Listen address used for inter-manager communication if the node gets promoted to
|
|
manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP).
|
|
manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP).
|
|
|
|
+- **AdvertiseAddr** – Externally reachable address advertised to other nodes. This can either be
|
|
|
|
+ an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port
|
|
|
|
+ number, like `eth0:4567`. If the port number is omitted, the port number from the listen
|
|
|
|
+ address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when
|
|
|
|
+ possible.
|
|
- **RemoteAddr** – Address of any manager node already participating in the Swarm to join.
|
|
- **RemoteAddr** – Address of any manager node already participating in the Swarm to join.
|
|
- **JoinToken** – Secret token for joining this Swarm.
|
|
- **JoinToken** – Secret token for joining this Swarm.
|
|
|
|
|