Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions discovery/token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@

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
`-> POST http://discovery.hub.docker.com/v1/clusters (data="")`
`-> POST https://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>")`
`-> POST https://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`

`<- 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`


#####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>"]`


#####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`