Score:0

How to access hosts local network from a docker container?

ve flag

I have two machines running in one local physical network in the office. One of them is exposed to world as a http web server (nginx on docker), the other one is not exposed to the world, it exposes a private service with API that should only be accesible to machines connected localy to the same physical network.

I want the first machine (exposed to the world) proxy-pass to the second one, but I'm having a trouble to access private machine from public machines nginx docker container, as long as I don't have an access to hosts network.

Is it possible to bind a single local IP of the other machine (for example 192.168.1.100) to the inside of public machine docker container?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.