---env---
[Email protected]:~# cat/etc/issue
Ubuntu 12.04.4 LTS \ \l
[Email protected]:~# docker-v
Docker version 1.12.3, build 6b644ec
Node1, Consul, shipyard, Portainer = 172.18.0.78
Node2 = 172.18.0.86
Node3 = 172.18.0.4
---Consul---
[Node1]
Docker run-d-P 8500:8500--name=consul progrium/consul-server-bootstrap-advertise=172.18.0.78
---master---
[Node1]
Docker run-d-P 4000:4000 swarm manage-h: 4000--replication--advertise 172.18.0.78:4000 consul://172.18.0.78:8500
---agent---
[Node1]
Docker run-d swarm join--advertise=172.18.0.78:2375 consul://172.18.0.78:8500
[Node2]
Docker run-d swarm join--advertise=172.18.0.86:2375 consul://172.18.0.78:8500
[Node3]
Docker run-d swarm join--advertise=172.18.0.4:2375 consul://172.18.0.78:8500
---shipyard---
[Node1]
Docker run-d--name shipyard-rethinkdb rethinkdb
(Docker run-d--name shipyard-rethinkdb-v/rethinkdb/data:/data rethinkdb)
Docker run-d--name shipyard-controller--link shipyard-rethinkdb:rethinkdb-p shipyard/shipyard:latest server-d tcp:// 172.18.0.78:4000
---portainer---
[Node1]
Docker run-d-P 9000:9000-v/var/run/docker.sock:/var/run/docker.sock Portainer/portainer
Ubuntu-docker-consul-swarm-shipyard-portainer