How to link Docker services across hosts?

前端 未结 8 1407
南笙
南笙 2021-01-29 17:51

Docker allows servers from multiple containers to connect to each other via links and service discovery. However, from what I can see this service discovery is host-local. I wou

8条回答
  •  粉色の甜心
    2021-01-29 18:44

    As mentioned above, Weave is definitely a viable solution to link Docker containers across the hosts. Based on my own experience with it, it is fairly straightfoward to set it up. It is now also has DNS service which you can address container's by its DNS names.

    On the other hand, there is CoreOS's Flannel and Juniper's Opencontrail for wiring the containers across the hosts.

提交回复
热议问题