mirror of https://github.com/docker/docs.git
This changeset fixes all lint violations that show up with a min_confidence of 1 - Issue #500: Run golint on codebase Signed-off-by: Matt Bajor <matt@notevenremotelydorky.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| token.go | ||
| token_test.go | ||
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 https://discovery-stage.hub.docker.com
#####Create a new cluster
-> POST https://discovery.hub.docker.com/v1/clusters (data="")
<- <token>
#####Add new nodes to a cluster
-> POST https://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")
<- OK
-> POST https://discovery.hub.docker.com/v1/clusters/token (data="<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