correct typos in filter readme

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2015-01-24 00:43:25 +00:00
parent 5ba0b09256
commit 3d8aed071e
1 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@ The `Docker Swarm` scheduler comes with multiple filters.
These filters are used to schedule containers on a subset of nodes.
`Docker Swarm` currently supports 3 filters:
`Docker Swarm` currently supports 4 filters:
* [Constraint](README.md#constraint-filter)
* [Affinity](README.md#affinity-filter)
* [Port](README.md#port-filter)
@ -145,7 +145,7 @@ CONTAINER ID IMAGE COMMAND CREATED
963841b138d8 redis:latest "redis" Less than a second ago running node-1 redis8
```
As you can see here, the containers were only scheduled on nodes with the redis imagealreayd pulled.
As you can see here, the containers were only scheduled on nodes with the redis image already pulled.
#### Expression Syntax
@ -160,14 +160,14 @@ A `value` must be one of the following:
Current `swarm` supports affinity/constraint operators as the following: `==` and `!=`.
For example,
* `constraint:name==node1` will match nodes named with `node1`.
* `constraint:name!=node1` will match all nodes, except `node1`.
* `constraint:node==node1` will match node `node1`.
* `constraint:node!=node1` will match all nodes, except `node1`.
* `constraint:region!=us*` will match all nodes outside the regions prefixed with `us`.
* `constraint:name==/node[12]/` will match nodes named `node1` and `node2`.
* `constraint:name==/node\d/` will match all nodes named with `node` + 1 digit.
* `constraint:node!=/node-[01]-id/` will match all nodes, except those with ids `node-0-id` and `node-1-id`.
* `constraint:name!=/foo\[bar\]/` will match all nodes, except those with name `foo[bar]`. You can see the use of escape characters here.
* `constraint:name==/(?i)node1/` will match all nodes named with `node1` case-insensitive. So 'NoDe1' or 'NODE1' will also matched.
* `constraint:node==/node[12]/` will match nodes `node1` and `node2`.
* `constraint:node==/node\d/` will match all nodes with `node` + 1 digit.
* `constraint:node!=/node-[01]/` will match all nodes, except `node-0` and `node-1`.
* `constraint:node!=/foo\[bar\]/` will match all nodes, except `foo[bar]`. You can see the use of escape characters here.
* `constraint:node==/(?i)node1/` will match node `node1` case-insensitive. So 'NoDe1' or 'NODE1' will also matched.
## Port Filter