-c connection string. redis://localhost:6379, etcd://localhost:4001, consul://localhost:8500
[2] gliderlabs/registrator ( 版) <https://github.com/gliderlabs/registrator>
$ docker run -d \
--name=registrator \
--net=host \
--volume=/var/run/docker.sock:/tmp/docker.sock \
gliderlabs/registrator:latest \
consul://localhost:8500
[3] 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> consul://<consul_addr>/<path>
# start the manager on any machine or your laptop
$ swarm manage -H tcp://<swarm_ip:swarm_port> consul://<consul_addr>/<path>