Answer the question
In order to leave comments, you need to log in
How do managers and workers interact in docker swarm?
Good evening.
Please don't talk about Google. You can not or too lazy to answer - do not answer.
I recently started learning Docker. Learned about docker swarm. I saw an example with an nginx image that displays the container ID, which, accordingly, is constantly changing.
It became interesting to me how exactly (can I have a code example?), How manager interacts with workers in docker sworm. How does it determine to whom, whom and what data to transfer and how it transfers?
Answer the question
In order to leave comments, you need to log in
This all happens automatically, it starts a network that works through their own data protocol, and passes traffic to where the working worker is. Therefore, you can contact any worker, and the traffic will go where it decides.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question