Merge pull request #549 from snrism/update_token_and_filter_readme

Update token and filter readme
This commit is contained in:
Victor Vieux
2015-04-01 13:26:02 -07:00
2 changed files with 7 additions and 7 deletions

View File

@@ -5,27 +5,27 @@ Docker Swarm comes with a simple discovery service built into the [Docker Hub](h
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="")`
`-> POST https://discovery-stage.hub.docker.com/v1/clusters`
`<- <token>`
#####Add new nodes to a cluster
`-> POST https://discovery.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> (data="<ip:port1>")`
`<- OK`
`-> POST https://discovery.hub.docker.com/v1/clusters/token (data="<ip:port2>")`
`-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> (data="<ip:port2>")`
`<- OK`
#####List nodes in a cluster
`-> GET https://discovery.hub.docker.com/v1/clusters/token`
`-> 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.hub.docker.com/v1/clusters/token`
`-> DELETE https://discovery-stage.hub.docker.com/v1/clusters/<token>`
`<- OK`

View File

@@ -8,12 +8,12 @@ page_keywords: docker, swarm, clustering, filters
The `Docker Swarm` scheduler comes with multiple filters.
These filters are used to schedule containers on a subset of nodes.
The following filters are currently used to schedule containers on a subset of nodes:
`Docker Swarm` currently supports 4 filters:
* [Constraint](#constraint-filter)
* [Affinity](#affinity-filter)
* [Port](#port-filter)
* [Dependency](#dependency-filter)
* [Health](#health-filter)
You can choose the filter(s) you want to use with the `--filter` flag of `swarm manage`