Answer the question
In order to leave comments, you need to log in
Docker swarm single network for workers and manager?
Hello.
I'm trying to organize the following scheme of work:
1. I raise the docker swarm manager on the vps
2. I raise the workers on the home and work machines (because I'm sitting at the nat) I ran
into a problem in organizing a single network. The created overlay network on the manager is not visible on the workers. Initially worked with individual dockers at home and at work. The network for all containers was common. Technology stack ngins proxy, apache2 + php, postgres. On one machine, everything turns out to be configured through a single network and all containers rise in it.
But when I try to organize via docker swarm, they don't want to see containers on different hosts. Tell me if anyone has already encountered this problem, how you can set up a single network between the nodes (so that you can specify the name of the container in the configs)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question