B
B
Ba An Doan2017-11-08 14:01:47
KVM
Ba An Doan, 2017-11-08 14:01:47

How to share 2 network interfaces between Docker containers?

Good day.
There is a VPS. Projects are spinning on it in two docker containers, hosting also has 2 white ip.
Task: Allocate IP addresses to each container.
Tell me how this is implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2017-11-08
@doanbaanh

To breed incoming connections, it is enough to forward ports with an external address.
For complete isolation of containers across host interfaces, there is a network driver macvlan .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question