docs/discovery/token
Andrea Luzzardi d492feb7cc golint: DiscoveryService -> Discovery
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-15 14:26:39 -07:00
..
README.md Doc changed to avoid errors with POST calls to Docker Hub Discovery Service API 2015-04-07 14:36:07 -07:00
token.go golint: DiscoveryService -> Discovery 2015-04-15 14:26:39 -07:00
token_test.go golint: DiscoveryService -> Discovery 2015-04-15 14:26:39 -07:00

README.md

#discovery-stage.hub.docker.com

Docker Swarm comes with a simple discovery service built into the Docker Hub

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-stage.hub.docker.com/v1/clusters

<- <token>

#####Add new nodes to a cluster -> 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> Request body: "<ip>:<port2>")

<- OK

#####List nodes in a cluster -> 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-stage.hub.docker.com/v1/clusters/<token>

<- OK