Which Docker container cross-host communication scheme should I choose?

https://www.zhihu.com/question/49245479?sort=created

 

http://www.cnblogs.com/sammyliu/p/5894191.html

My environment is that Docker is installed in virtual machines on 5 physical hosts, each of which has 3 containers. Now to solve the cross-host communication between containers, there are five solutions collected online:
1. Use OpenVSwitch
2. Use Weave
3. Overlay network supported by Docker after 1.9 (this seems to be the official practice)
Docker 1.9 Overlay Network realizes cross-host network intercommunication
4. Group containers of multiple physical machines to a physical network
1. Create your own bridge br0
2. Bind the docker default network bridge to
the container interconnection between multiple physical hosts in br0
5. Modify the default virtual network segment of the host docker, and then add the other party's docker network segment to the routing table on the respective hosts. With iptables, docker container cross-host communication can be realized.
How to make docker containers on different hosts communicate with each other

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326918769&siteId=291194637