Hi, I am switching several of my Docker containers over to LXD but am having some trouble with the container being on a separate subnet.
In short Syncthing uses the link-local-broadcast address(255.255.255.255) for automating discovery of other Syncthing instances which makes connecting them easy. In this same container I also have a connection outgoing to another container which is a MQTT broker for notifications, among other controls.
Should I use a bridge? Or is there a way to pass the host network into the container, similar to dockers --net=host?
The issue with macvlan is that I can’t connect to the host for the mqtt broker.
Which is the more preferred way to add the ability to connect to the host(other containers), add another network to guest(eth0 as macvlan, eth1 as lxdbr0) or create a bridge on the host and change eth0 to bridge?
So if reconfiguring your host is an option, making a br0 bridge that includes the host’s physical nic, then using that for your container is certainly the best option, your container and host will be able to reach each other then and communicate directly on the same physical network.