Connect external API from inside container

Hi,

see this instruction :

curl -X GET "http://vps546862.ovh.net:8000/dep?q=Ain" -H "accept: application/json"
(a plumber API)

it works fine on my computer and even inside a minimal container (ubuntu + curl). (in a serveur without shinyproxy)

But If I use shinyproxy, this doesn’t work anymore with error : “curl: (7) Failed to connect to vps546862.ovh.net port 8000: No route to host”. It doesn’t work inside a container launched by shinyproxy AND from inside a manualy launched container.

The only configuration I made on docker is this one :
ExecStart=/usr/bin/dockerd -H fd:// -D -H tcp://127.0.0.1:2375

exept this issue everything works fine…

Can you please help me ?

Hi @Cervan_Girard,

Regarding the minimal container that did work: did you run it on the same docker host with the same firewall settings?

Also, do you specify a docker network for your shiny apps? If so, does that network have external access, i.e. not the --internal flag?