Docker Community Forums

Share and learn in the Docker community.

Upnp/Zeroconf inside Docker-Container (discover a Chromecast)

Hello,

I am using pychromecast inside a docker-container for controling a Google Chromecast Device.
As far as I understand, pychromecast uses Zeroconf for discovery (see github dot com /balloob/pychromecast/blob/master/pychromecast/discovery.py#L88).
Furthermore, I understand that Prot 1900 udp is used.

On the Host, I already have some processes listening to port 1900:

udp 0 0 0.0.0.0:1900 0.0.0.0:* 22648/squeeze2cast-
udp 0 0 0.0.0.0:1900 0.0.0.0:* 13358/perl
udp 0 0 192.168.177.3:1900 0.0.0.0:* 13358/perl
udp 0 0 172.17.0.1:1900 0.0.0.0:* 13358/perl
udp 0 0 239.255.255.250:1900 0.0.0.0:* 4345/minisatip
udp 0 0 0.0.0.0:1900 0.0.0.0:* 4345/minisatip
udp 0 0 0.0.0.0:1900 0.0.0.0:* 2803/Plex DLNA Serv

When starting my container without a “-p” command, I cannot discover the Chromecast Device.
Starting my container with a “-p 1900:1900/udp” fails, as the port is already in use.

What is the proper way to solve this -avoiding net=host (with that, it works)

Regards,
Hendrik