BobSammers wrote: > I'm experimenting with moving LMS into a Docker container and I've hit a > stumbling block with ShairTunes. > > As I'm on a Pi host, it is running Raspbian which, by default, has the > Avahi daemon running. This binds to 5353:udp on all interfaces and > therefore blocks Docker from doing so and forwarding it to the > container. Without this port, ShairTunes' internal mDNS server cannot > advertise so the server cannot be found. > > I have a couple of options: > > > - Disable Avahi on the host. This makes running the container more > complicated on a new host and could compromises other mDNS services. - Running the container in "host" networking mode (instead of the > default "bridge"). This is considered less secure and I'm still > relying on Avahi and ShairTunes to be able to share the port with > one running natively and one in a container. I'm not sure whether > this works even when both are running normally on the host. - Investigating whether the container can interact with the host's > Avahi and advertise through that. > > > > I'm interested in whether (3) is feasible. I understand that > ShairTunes will try to use an existing mDNS server if one is already > running but I don't know what the mechanism is. Is it something that > would work through a container, such as by exposing points in the file > system (e.g. /etc/avahi/services/) or a device to the container?
Avahi has an option where it does not ask for exclusive port control (so_reuse_port when opening socket, I dont remember what is the avahis option name) LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5 ------------------------------------------------------------------------ philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=106289
_______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
