简体   繁体   中英

How to setup Docker Overlay networks with hosts in different public networks or regions?

I have basic understanding of VXLAN and overlay.networks in general. Docker overlay uses VXLAN under the hood to enable multi-host containers to talk among themselves.

However, what if these multi host containers are located in different public.networks eg EC2 instances across different AWS regions and hence different public IP address.networks. An EC2 instance will have private addresses within its own NAT AWS public address and so how will the docker daemon in the other EC2 contact it. Is this even possible?(of course not recommended)

Maybe AWS has some workarounds but is Docker overlay.networking solution across different public.networks possible in general? If yes, how do we do that?

If your nodes are on different VPCs in different regions, you could have them reach each other using VPC peering

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM