Docker Community Forums

Share and learn in the Docker community.

Connecting to local network

docker

(Dcresnitzky) #1

Hi guys,

I’m having a hard time trying to connect to my local network from a container. The case: I run a small gitlab server on 192.168.0.34 and now I need to reach it because I need to download php packages using composer from inside one of my containers running in my mac (192.168.0.10).

The question is: What should I do to access the gitlab running on. 192.168.0.34 from any container running on my machine?

Docker Version 18.03.1-ce-mac65 (24312)
macOS High Sierra 10.13.5

Thank you.


(Dcresnitzky) #2

So my workaround was: reverse proxy on top of nginx on host machine.