Fix three typo in docs/scheduler/filter.md

dafult -> default
by by -> by
want run -> want to run

Signed-off-by: Clément Aigreault <aigreaultc@gmail.com>
Signed-off-by: Uhsac <aigreaultc@gmail.com>
This commit is contained in:
Clément Aigreault 2016-02-02 14:49:59 +01:00 committed by Uhsac
parent 58baa9ea29
commit 3ece47ff91
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ When creating a container or building an image, you use a `constraint` or
Node constraints can refer to Docker's default tags or to custom labels. Default Node constraints can refer to Docker's default tags or to custom labels. Default
tags are sourced from `docker info`. Often, they relate to properties of the Docker tags are sourced from `docker info`. Often, they relate to properties of the Docker
host. Currently, the dafult tags include: host. Currently, the default tags include:
* `node` to refer to the node by ID or name * `node` to refer to the node by ID or name
* `storagedriver` * `storagedriver`
@ -101,7 +101,7 @@ new containers.
Continuing the previous example, assuming your cluster with `node-1` and Continuing the previous example, assuming your cluster with `node-1` and
`node-2`, you can run a MySQL server container on the cluster. When you run the `node-2`, you can run a MySQL server container on the cluster. When you run the
container, you can use a `constraint` to ensure the database gets good I/O container, you can use a `constraint` to ensure the database gets good I/O
performance. You do this by by filter for nodes with flash drives: performance. You do this by filtering for nodes with flash drives:
```bash ```bash
$ docker tcp://<manager_ip:manager_port> run -d -P -e constraint:storage==ssd --name db mysql $ docker tcp://<manager_ip:manager_port> run -d -P -e constraint:storage==ssd --name db mysql
@ -116,7 +116,7 @@ In this example, the master selected all nodes that met the `storage=ssd`
constraint and applied resource management on top of them. Only `node-1` was constraint and applied resource management on top of them. Only `node-1` was
selected because it's the only host running flash. selected because it's the only host running flash.
Suppose you want run an Nginx frontend in a cluster. In this case, you wouldn't want flash drives because the frontend mostly writes logs to disk. Suppose you want to run an Nginx frontend in a cluster. In this case, you wouldn't want flash drives because the frontend mostly writes logs to disk.
```bash ```bash
$ docker tcp://<manager_ip:manager_port> run -d -P -e constraint:storage==disk --name frontend nginx $ docker tcp://<manager_ip:manager_port> run -d -P -e constraint:storage==disk --name frontend nginx