How to place swarm worker nodes in maintenance mode for patching etc
vagrant@swarm1010:~$ docker node ls
Show service
docker service ls
docker service ps east-webservers –filter DESIRED-STATE=running
Placing a worker node in DRAIN will shut all the container in that node and move it to peer nodes
vagrant@swarm1010:~$ docker node update swarm1012 –availability drain
docker service ps east-webservers –filter DESIRED-STATE=running
There are no containers running on swarm1012
(Visited 65 times, 1 visits today)