Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tutorial can be found here:
- https://blog.docker.com/2016/03/swarmweek-join-your-first-swarm/
- Management of swarm cluster configuration:
- ##########################################
- service discovery process:
- sudo docker run --restart=unless-stopped -d -p 8500:8500 -h consul1 progrium/consul -server -bootstrap
- swarm manager process:
- sudo docker run --restart=unless-stopped -d -p 3375:2375 swarm manage consul://10.9.9.149:8500 <--- This is the discovery process mentioned above
- Container nodes:
- ################
- node 1:
- sudo docker -H=tcp://10.9.9.229:2375 run -d swarm join --advertise=10.9.9.229:2375 consul://10.9.9.149:8500/
- node 2:
- sudo docker -H=tcp://10.9.9.177:2375 run -d swarm join --advertise=10.9.9.177:2375 consul://10.9.9.149:8500/
- Docker Engine Client:
- #####################
- env | egrep DOCK
- DOCKER_HOST=10.9.9.149:3375
Advertisement
Add Comment
Please, Sign In to add comment