Closed JeWe37 closed 2 years ago
This isn't a bug, its expected behavior with docker. docker isolates the app from the host, so any host-dependent features won't work without additional work that a docker user should know to expect.
Given that altering this behavior took me a bit and that I am likely to not be the only one that will encounter this I would argue that at least stating that this functionality won't be available explicitly and offering the option to enable it by circumventing said isolation would be the proper way to fix this. I didn't mean to suggest that the default be changed.
In our main docs, we state that octoprint is not the best candidate for containerization. It is also assumed that if you've chosen to use docker, you have a very specific reason to do so, and know docker well enough to handle your use case. Any device based docker image is an advanced docker usage. If you're just using this image as a way to quickly install OctoPrint, you're going to run into a lot of issues that will require docker skills and knowledge to fix.
This is basic docker knowledge, and there are so many host dependent features in Octoprint, that we'd basically be duplicating significant pieces of docker documentation.
Docker also changes these interfaces from version to version, and everyone's host network, ineterfaces, etc... are unique.
The entire premise behind dockerization is that the app developer doesn't have to do stuff like this because it will be the system admin's responsibility (because docker will run on any linux kernel and it's impossible to know what each host would need to make the plugin work).
Describe the bug With the current docker-compose file bonjour/avahi/zeroconf auto-discovery does not work.
Container Details
Don't think this matters here: 2021-11-02T17:31:14.962Z
To Reproduce Steps to reproduce the behavior:
Expected behavior They should show up I guess?
Additional context I have solved it: For similar SSDP problems you usually see using host networking(
network_mode: host
) suggested. On my RaspberryPi that did not work though, I instead had to set up a macvlan network, which for some reason then did work just fine. Further investigation may be required, which is why this isn't a pull request.