Installing LibreNMS on Docker w/macvlan Network

I tried Reddit and tried the Docker forums, but haven’t gotten any bites, so here goes…

I am looking to install LibreNMS as a Docker container on my Ubuntu 20.04 server. Currently I have two other containers running using the macvlan network type (e.g. each container gets its own MAC address and IP).

The problem I am running into, specifically w/LibreNMS but also other apps (such as Greylog) is with the “sidecar containers”, e.g. librenms_db, librenms_dispatcher, et al…

I recently discovered there are limitations within Docker that prevent containers from directly communicating with the host as well as other containers, so I’m curious if I can even accomplish installing LibreNMS using macvlan? I’ve read of a kludgey workaround to somehow bridge the host’s network adapter to the Docker bridge (or a macvlan interface) but that’s not very elegant.

It seems like the containers will start, but cannot communicate with one another even if I edit the ${ENV} variables to provide the IP addresses I’m assigning the sidecar containers for the various services… tl;dr: is there any way to run LibreNMS entirely as one container, or use the official images including sidecar containers, but as macvlans?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.