zk:

zk:

[1] Swarm discovery - Docker Documentation ( 版) <https://docs.docker.com/v1.5/swarm/discovery/>

# on each of your nodes, start the swarm agent

# <node_ip> doesn't have to be public (eg. 192.168.0.X),

# as long as the swarm manager can access it.

$ swarm join --addr=<node_ip:2375> zk://<zookeeper_addr1>,<zookeeper_addr2>/<path>

# start the manager on any machine or your laptop

$ swarm manage -H tcp://<swarm_ip:swarm_port> zk://<zookeeper_addr1>,<zookeeper_addr2>/<path>