Swarm
Initialize a new swarm
Changed onpost/swarm/init
Request
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Request body
Example request
{
"ListenAddr": "0.0.0.0:2377",
"AdvertiseAddr": "192.168.1.1:2377",
"DataPathPort": 4789,
"DefaultAddrPool": [
"10.10.0.0/8",
"20.20.0.0/8"
],
"SubnetSize": 24,
"ForceNewCluster": false,
"Spec": {
"Orchestration": {},
"Raft": {},
"Dispatcher": {},
"CAConfig": {},
"EncryptionConfig": {
"AutoLockManagers": false
}
}
}Response
no error
string required
The node ID
Example response
"7v2t30z9blmxuhnyo6s4cpenp"
Changes
- breaking
removed the request body
- breaking
removed the media type
text/plainfor the response with the status - info
api tag
Swarmadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- breaking
removed the media type
text/plainfrom the request body - breaking
the
//request property format changed from no format toint32 - breaking
the
//request property format changed from no format toint32 - breaking
removed the media type
application/jsonfor the response with the status - info
api tag
Swarmremoved - info
the
request property default valuecfsslwas removed - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- breaking