Fix discovery token README

Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com>
This commit is contained in:
Sriram Natarajan 2015-04-01 11:58:43 -07:00
parent 2c94f22f4c
commit 74a9a04a60
1 changed files with 5 additions and 5 deletions

View File

@ -5,27 +5,27 @@ Docker Swarm comes with a simple discovery service built into the [Docker Hub](h
The discovery service is still in alpha stage and currently hosted at `https://discovery-stage.hub.docker.com`
#####Create a new cluster
`-> POST https://discovery.hub.docker.com/v1/clusters (data="")`
`-> POST https://discovery-stage.hub.docker.com/v1/clusters`
`<- <token>`
#####Add new nodes to a cluster
`-> POST https://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
`<- OK`
`-> POST https://discovery.hub.docker.com/v1/clusters/token (data="<ip:port2>")`
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> (data="<ip:port2>")`
`<- OK`
#####List nodes in a cluster
`-> GET https://discovery.hub.docker.com/v1/clusters/token`
`-> GET https://discovery-stage.hub.docker.com/v1/clusters/<token>`
`<- ["<ip:port1>", "<ip:port2>"]`
#####Delete a cluster (all the nodes in a cluster)
`-> DELETE https://discovery.hub.docker.com/v1/clusters/token`
`-> DELETE https://discovery-stage.hub.docker.com/v1/clusters/<token>`
`<- OK`