Open AJNOURI opened 6 years ago
Important condition: For training purposes, I am using a hosted service with dynamic IP addresses renewed each time the servers are rebooted, and they are rebooted after 2 hours.
Of course the workers after reboot were trying to join the manager with the wrong IP.
The solution, partially, was to remove the workers from the cluster nd rejoin using the new manager IP.
docker swarm leave
Node left the swarm.
docker swarm join --token SWMTKN-1-06xygghtoyyvchg736y1wet3li909s8nrzol8oubov9q85icu2-8vmn0d4rb3g34bw7uqycpsisw 172.31.27.4:2377
This node joined a swarm as a manager.
That didn't work for all workers ==>https://github.com/AJNOURI/Docker_Certified_Associate_Certification/issues/3
After a backup & restore of a cluster, All workers have STATUS Down
docker node ls
Eventhough, the service is restored correctly, but looks like hosted on the manager only:
docker service ls