How to send http requests from inside Docker container in one host to another host via vpn connection?

  docker, routes

I have a dockerised web app on my PC, it should send http requests to another app which is on another host (available through vpn), but I get TimedOut error. If send requests to e.g. google.com – works fine.

If I send requests in opposite direction (from another host to my dockerised app in my PC) – everything works fine.

I I serve app without Docker in my PC – everything is fine for both directions.

It seems like routing problem, how can I make traffic from Dockerized app to go to vpn interface – not sure if it can solve the issue. Please any suggest.

Source: Docker Questions

LEAVE A COMMENT