docs/discovery/token
Andrea Luzzardi 58558f5224 Fix various golint issues.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-10-19 13:58:21 -07:00
..
README.md update discovery url 2015-09-02 21:04:04 -07:00
token.go Fix various golint issues. 2015-10-19 13:58:21 -07:00
token_test.go Fix various golint issues. 2015-10-19 13:58:21 -07:00

README.md

#discovery.hub.docker.com

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

#####Create a new cluster -> POST https://discovery.hub.docker.com/v1/clusters

<- <token>

#####Add new nodes to a cluster -> POST https://discovery.hub.docker.com/v1/clusters/<token>?ttl=<ttl> Request body: "<ip>:<port1>"

<- OK

-> POST https://discovery.hub.docker.com/v1/clusters/<token>?ttl=<ttl> Request body: "<ip>:<port2>")

<- OK

#####List nodes in a cluster -> GET https://discovery.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>

<- OK