简体   繁体   中英

How to expose docker container from Rancher's private network?

Let's say that I have a HAProxy load-balancer inside Rancher's private network. Now I'd like to expose it somehow to the world, so it could receive requests from somewhere else apart of other docker containers living next to it.

If it was just a simple docker container than I probably should map port from docker container to some interface with IP address which is accessible from outside of docker network.

Probably I can do the same with container in Rancher, but this means that I have to configure network manually on every host where this container might run. And this kind of work is exactly what I'm trying to avoid using orchestration tool like Rancher.

How do you do that? How do you expose containers living inside of private network to the world?

使用Load Balancer服务,请查看文档: http//docs.rancher.com/rancher/rancher-ui/applications/stacks/adding-balancers/

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