mirror of https://github.com/docker/docs.git
Doc changed to avoid errors with POST calls to Docker Hub Discovery Service API
The data on the "Add new nodes to a cluster" request may be confusing. It's not a key=value pair as it can be understood with the current docs. Signed-off-by: jangelfdez <me@joseangelfernandez.es>
This commit is contained in:
parent
530d5670a4
commit
17b9b96b33
|
|
@ -10,11 +10,11 @@ The discovery service is still in alpha stage and currently hosted at `https://d
|
|||
`<- <token>`
|
||||
|
||||
#####Add new nodes to a cluster
|
||||
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
|
||||
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> Request body: "<ip>:<port1>"`
|
||||
|
||||
`<- OK`
|
||||
|
||||
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> (data="<ip:port2>")`
|
||||
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> Request body: "<ip>:<port2>")`
|
||||
|
||||
`<- OK`
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ The discovery service is still in alpha stage and currently hosted at `https://d
|
|||
#####List nodes in a cluster
|
||||
`-> GET https://discovery-stage.hub.docker.com/v1/clusters/<token>`
|
||||
|
||||
`<- ["<ip:port1>", "<ip:port2>"]`
|
||||
`<- ["<ip>:<port1>", "<ip>:<port2>"]`
|
||||
|
||||
|
||||
#####Delete a cluster (all the nodes in a cluster)
|
||||
|
|
|
|||
Loading…
Reference in New Issue