Slide 24
Slide 24 text
# docker swarm
# Run the consul to act as swarm key/value backend
$ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap
# Initialize the first swarm manager
$ docker run -d -p 4000:4000 swarm manage -H :4000 --replication --advertise :
4000 consul://:8500
# Initialize another swarm manager
$ docker run -d -p 4000:4000 swarm manage -H :4000 --replication --advertise :
4000 consul://:8500
# Join a worker node to the cluster
$ docker run -d swarm join --advertise=:2375 consul://:8500