In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What I want to share with you today is the implementation of communication between different containers in docker. Docker communication is divided into communication between different containers within a single host and communication across host containers. Because of the urgent need for cross-host communication, docker 1.9 officially proposed a vxlan-based overlay network implementation, which natively supports container cross-host communication.
At the same time, it also supports the expansion of various third-party implementations through libnetwork's plugin mechanism to achieve cross-host communication in different ways.
The basic implementations of cross-host communication are as follows:
1. Tunnel-based overlay network
According to the type of tunnel, different companies or organizations have different implementation schemes. The native overlay network of docker is based on vxlan tunnel. Ovn needs to be implemented through geneve or stt tunnels. The latest version of flannel has also begun to implement overlay networks based on vxlan by default.
2. Overlay network based on packet encapsulation.
Based on packet packaging methods such as UDP encapsulation, the cross-host network is realized on the docker cluster. Typical implementations include earlier versions of weave and flannel.
3. Realize SDN network based on three layers.
Based on the three-layer protocol and routing, the cross-host network is realized directly on the third layer, and the network is securely isolated through iptables. The typical scenario is Project Calico. At the same time, for the environment that does not support three-layer routing, Project Calico also provides cross-host network implementation based on IPIP encapsulation.
Container cloud products are implemented by deploying container services on cluster servers through docker technology, with tens of thousands of Linux images, powerful, easy to use, easy to use as cluster services and free to build VPCs.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.