From 98914a122c8777715ec01db96ad022476783abc2 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 15 Jan 2015 22:04:18 +0000 Subject: [PATCH] tweak doc Signed-off-by: Victor Vieux --- scheduler/filter/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scheduler/filter/README.md b/scheduler/filter/README.md index b6cfcbf41a..fb8210fb1c 100644 --- a/scheduler/filter/README.md +++ b/scheduler/filter/README.md @@ -96,6 +96,7 @@ CONTAINER ID IMAGE COMMAND CREATED ``` Using `-e affinity:container=front` will schedule a container next to the container `front`. +You can also use IDs instead of name: `-e affinity:container=87c4376856a8` ``` $ docker run -d --name logger -e affinity:container=front logger @@ -120,7 +121,7 @@ $ docker -H node-2:2375 pull redis ``` Here only `node-1` and `node-3` have the `redis` image. Using `-e affinity:image=redis` we can -schedule container only on these 2 nodes. +schedule container only on these 2 nodes. You can also use the image ID instead of it's name. ``` $ docker run -d --name redis1 -e affinity:image=redis redis