P
P
p3trukh1n2020-05-28 22:53:16
Docker
p3trukh1n, 2020-05-28 22:53:16

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

1 answer(s)
I
Ighor July, 2020-05-28
@p3trukh1n

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 question

Ask a Question

731 491 924 answers to any question