#DockerSwarm, #Loadbalancing, #HighAvailability Hello Friends, Welcome back to my channel. We are going to see another tutorial on Docker Swarm. In this tutorial, we will see how running an application in docker swarm is beneficial in an real production environment. We will go through the step by step instructions on High availability & auto load balancing in Docker Swarm, How easily you can scale your application services, with zero down time and easy maintenance of your servers.
-----------------------------------------------------------------------------------------------
Docker Swarm Visualizer:
[ Ссылка ]
Docker command to start the Visualizer container:
docker run -it -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock dockersamples/visualizer
-----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
How to setup Docker on Centos:
[ Ссылка ]
----------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
Setup Docker Swarm:
[ Ссылка ]
------------------------------------------------------------------------------------------
docker service create --name Nginx -p 8080:80 --replicas 4 nginx
docker service create --name Alpine --replicas 8 alpine ping www.google.com
docker service scale Alpine=5
docker node update --availability drain worker1
sudo firewall-cmd --permanent --zone=public --add-port=2377/tcp
sudo firewall-cmd --reload
==============================================
Follow me @:
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
=============================================
![](https://i.ytimg.com/vi/zMC3SyeaDGU/mqdefault.jpg)