I have a docker container as part of docker-compose that should reach other containers but as well a server running in my local network.
(the docker container is a monitoring service)

I know that in order to reach the local LAN I should configure the network mode to “host”, is that correct? In that case am I still able to reach the other containers running in the default bridge network?

  • not-the-real-chopin@alien.topOPB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Thanks, it must have been some other problem. I’m able to reach my local network from within the docker container. I even found that the docker container is using the host DNS configuration.

    I configured pi.hole as DNS server in the host machine and the docker container is using it too.