mdns - How to 'avahi-browse' from a docker container? -


i'm running container based on ubuntu:14.04, , need able use avahi-browse inside it. however:

(.env)root@8faa2c44e53e:/opt/cluster-manager# avahi-browse -a failed create client object: daemon not running (.env)root@8faa2c44e53e:/opt/cluster-manager# service avahi-daemon status avahi mdns/dns-sd daemon running 

the actual problem have pybonjour error; pybonjour.bonjourerror: (-65537, 'unknown') i've read linked problem avahi-daemon.

so; how connect avahi-daemon container ?

p.s. have switch dbus off in avahi-daemon.conf fill make possible start it, otherwise avahi-daemon won't start, dbus error this: (.env)root@8faa2c44e53e:/opt/cluster-manager# avahi-daemon found user 'avahi' (uid 103) , group 'avahi' (gid 107). dropped root privileges. avahi-daemon 0.6.31 starting up. dbus_bus_get_private(): failed connect socket /var/run/dbus/system_bus_socket: no such file or directory warning: failed contact d-bus daemon. avahi-daemon 0.6.31 exiting.

avahi requires d-bus in order communicate clients. sounds docker container isn't starting system d-bus. if that, avahi should work.

you need d-bus of avahi's functionality (including avahi-browse) disabling won't help.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -