From 0b607e92a2c78c6f4d2fe1ccda6d378d0e4f2002 Mon Sep 17 00:00:00 2001 From: rio-2607 Date: Wed, 20 May 2015 20:48:11 +0800 Subject: [PATCH] Update usage.md --- swarm/usage.md | 1 + 1 file changed, 1 insertion(+) diff --git a/swarm/usage.md b/swarm/usage.md index 0f38f7c..c2bb31d 100644 --- a/swarm/usage.md +++ b/swarm/usage.md @@ -191,6 +191,7 @@ CONTAINER ID IMAGE COMMAND CREA 2553799f1372 redis:latest /entrypoint.sh redis 33 minutes ago Up 8 minutes 192.168.1.84:32770->6379/tcp 084/node-1 可以看到三个container都是分布在不同的节点上面的。 + 现在来看看binpack策略下的情况。在083上面执行命令:

 rio@083:~$ sudo docker run -d -p 2376:2375 -v $(pwd)/cluster:/tmp/cluster swarm manage --strategy=binpack  file:///tmp/cluster