From d28dafa893fab2e2047af4885b4ec4beb97a95a9 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 8 Jan 2015 22:11:03 +0000 Subject: [PATCH] update discovery/README.md Signed-off-by: Victor Vieux --- discovery/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/discovery/README.md b/discovery/README.md index 5ed6656770..244e13e19e 100644 --- a/discovery/README.md +++ b/discovery/README.md @@ -101,6 +101,29 @@ $ swarm list --discovery consul:/// http:// ``` +###### Using zookeeper + +```bash +# on each of your nodes, start the swarm agent +# doesn't have to be public (eg. 192.168.0.X), +# as long as the other nodes can reach it, it is fine. +$ swarm join --discovery zk://,/ --addr= + +# start the manager on any machine or your laptop +$ swarm manage --discovery zk://,/ -H= + +# use the regular docker cli +$ docker -H info +$ docker -H run ... +$ docker -H ps +$ docker -H logs ... +... + +# list nodes in your cluster +$ swarm list --discovery zk://,/ +http:// +``` + ## Contributing Contributing a new discovery backend is easy,