mirror of https://github.com/docker/docs.git
add https to token doc
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
49944d4742
commit
421c5a2ee5
|
@ -2,30 +2,30 @@
|
||||||
|
|
||||||
Docker Swarm comes with a simple discovery service built into the [Docker Hub](http://hub.docker.com)
|
Docker Swarm comes with a simple discovery service built into the [Docker Hub](http://hub.docker.com)
|
||||||
|
|
||||||
The discovery service is still in alpha stage and currently hosted at `http://discovery-stage.hub.docker.com`
|
The discovery service is still in alpha stage and currently hosted at `https://discovery-stage.hub.docker.com`
|
||||||
|
|
||||||
#####Create a new cluster
|
#####Create a new cluster
|
||||||
`-> POST http://discovery.hub.docker.com/v1/clusters (data="")`
|
`-> POST https://discovery.hub.docker.com/v1/clusters (data="")`
|
||||||
|
|
||||||
`<- <token>`
|
`<- <token>`
|
||||||
|
|
||||||
#####Add new nodes to a cluster
|
#####Add new nodes to a cluster
|
||||||
`-> POST http://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
|
`-> POST https://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
|
||||||
|
|
||||||
`<- OK`
|
`<- OK`
|
||||||
|
|
||||||
`-> POST http://discovery.hub.docker.com/v1/clusters/token (data="<ip:port2>")`
|
`-> POST https://discovery.hub.docker.com/v1/clusters/token (data="<ip:port2>")`
|
||||||
|
|
||||||
`<- OK`
|
`<- OK`
|
||||||
|
|
||||||
|
|
||||||
#####List nodes in a cluster
|
#####List nodes in a cluster
|
||||||
`-> GET http://discovery.hub.docker.com/v1/clusters/token`
|
`-> GET https://discovery.hub.docker.com/v1/clusters/token`
|
||||||
|
|
||||||
`<- ["<ip:port1>", "<ip:port2>"]`
|
`<- ["<ip:port1>", "<ip:port2>"]`
|
||||||
|
|
||||||
|
|
||||||
#####Delete a cluster (all the nodes in a cluster)
|
#####Delete a cluster (all the nodes in a cluster)
|
||||||
`-> DELETE http://discovery.hub.docker.com/v1/clusters/token`
|
`-> DELETE https://discovery.hub.docker.com/v1/clusters/token`
|
||||||
|
|
||||||
`<- OK`
|
`<- OK`
|
||||||
|
|
Loading…
Reference in New Issue