-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get mDNS responses from inside the Docker container. #2
Comments
This works with CoreOS and the included service. Have you tried disabling AppArmor first with |
@brucardoso2 I'm stuck one step further than you. I successfully mount dbus but the message I see is this:
Does this policy file need to be set up on the host or inside the container? `cat < /etc/dbus-1/system.d/avahi.conf EOF`Any thoughts @ianblenke? |
I'm also unable to run this image successfully on a 16.04. host. |
Think I figured it out finally. Needed to use |
You could probably also try turning off apparmor confinement for the container |
I know this thread is old but Also if we mount dbus on docker container and have avahi on host machine why should we run another instance of it on the container? As it has access to host daemon it could use it. |
@hamed1soleimani any suggestions on how to access the host daemon from inside the docker container ? I have mounted the dbus and i am unable to find any way to be able to discover ".local" addresses present in the network from inside the docker container apart from running a separate daemon inside the container , and in which case it gives an error : 'multiple mdns stack present on this machine . which makes mdns unreliable' . |
@jab5263 (and others) have you figured this out yet? I have a Docker running Ubuntu 18.04, on a host running Ubuntu 14.04. By default, the avahi-daemon service is running on the host. There are three relevant cases here:
Is anyone aware of a way to enable the host and docker container to access ".local" addresses? (Note that in all of the above cases, I run the docker with |
I have the same problem. I have a partial solution, by setting |
Hi @icblenke ,
I was messing around with your image and tried to replicate the steps on your Dockerfile to install the avahi-daemon on my Dockerfile.
I was able to do it, however when I tried to run
avahi-daemon
and with --no-drop-root
I did map the volume
/var/run/dbus:/var/run/dbus
, however I'm not very familiar with AppArmor.I'm trying to get the broadcasted services using Python's https://pypi.python.org/pypi/zeroconf implementation.
Have you done anything similar?
Thank you very much.
The text was updated successfully, but these errors were encountered: