When using a routed mode networking connection for a container, how can we take advantage of the avahi daemon for resolving local network hosts?
I usually install libnss-mdns on the container, and that works, however in the routed more, it can resolve host from container, container from host, but not other ips in the local network, but outside host.
In docker, there is a trick to do it with:
-v /var/run/dbus:/var/run/dbus -v /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
so the docker container will use avahi-daemon of the host. Is there any way we can do similar in LXD?
Here is the profile I am using:
raw.idmap: “both 1000 1000”
- to: 0.0.0.0/0