Improve formatting of discovery README.

This commit is contained in:
Andrea Luzzardi 2014-12-04 12:44:40 -08:00
parent d2b6522ce9
commit 172ca9d5aa
1 changed files with 5 additions and 0 deletions

View File

@ -6,21 +6,26 @@ The discovery service is still in alpha stage and currently hosted at `http://di
#####Create a new cluster
`-> POST http://discovery.hub.docker.com/v1/clusters (data="")`
`<- <token>`
#####Add new nodes to a cluster
`-> POST http://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
`<- OK`
`-> POST http://discovery.hub.docker.com/v1/clusters/token (data="<ip:port2>")`
`<- OK`
#####List nodes in a cluster
`-> GET http://discovery.hub.docker.com/v1/clusters/token`
`<- ["<ip:port1>", "<ip:port2>"]`
#####Delete a cluster (all the nodes in a cluster)
`-> DELETE http://discovery.hub.docker.com/v1/clusters/token`
`<- OK`