docs/discovery/token
Victor Vieux 429965c58d ip:port, no proto or scheme
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-08 22:12:41 +00:00
..
README.md First step toward modular discoevery services 2014-12-11 01:24:19 +00:00
token.go remove useless create fct 2014-12-13 01:21:38 +00:00
token_test.go ip:port, no proto or scheme 2015-01-08 22:12:41 +00:00

README.md

#discovery.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 http://discovery-stage.hub.docker.com

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