ubuntu:14.04 ベースのコンテナを実行していますが、avahi-browse
その中で使用できるようにする必要があります。でも:
(.env)root@8faa2c44e53e:/opt/cluster-manager# avahi-browse -a
Failed to create client object: Daemon not running
(.env)root@8faa2c44e53e:/opt/cluster-manager# service avahi-daemon status
Avahi mDNS/DNS-SD Daemon is running
私が抱えている実際の問題はpybonjour
エラーです。pybonjour.BonjourError: (-65537, 'unknown')
しかし、それは avahi-daemon の問題に関連していると読んだことがあります。
そう; コンテナーから avahi-daemon に接続するにはどうすればよいですか?
PS avahi-daemon.conf で dbus をオフにして起動できるようにする必要があります。そうしないと、avahi-daemon が起動せず、次のような dbus エラーが発生します。
(.env)root@8faa2c44e53e:/opt/cluster-manager# avahi-daemon
Found user 'avahi' (UID 103) and group 'avahi' (GID 107).
Successfully dropped root privileges.
avahi-daemon 0.6.31 starting up.
dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
WARNING: Failed to contact D-Bus daemon.
avahi-daemon 0.6.31 exiting.