Skip to content
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

Run container in host network instead of bridge to allow DLNA discovery #27

Closed
tophee opened this issue Jul 12, 2020 · 2 comments
Closed

Comments

@tophee
Copy link

tophee commented Jul 12, 2020

Expected Behavior

Containerized Emby + DLNA plugin should discover DLNA devices (like TVs), just like it does when installed outside a container

Current Behavior

When using the provided Docker composer snippet, it does not see my Panasonic Viera DT60 series TV, i.e. it is not offered as a device that can be streamed to (It does, however, see the Chromecast).

Command used to create docker container (run/create/compose/screenshot)


version: "2.1"
services:
emby:
image: linuxserver/emby
container_name: emby
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- UMASK_SET=022 #optional
volumes:
- /path/to/library:/config
- /path/to/tvshows:/data/tvshows
- /path/to/movies:/data/movies
- /path/for/transcoding:/transcode #optional
- /opt/vc/lib:/opt/vc/lib #optional
ports:
- 8096:8096
- 8920:8920 #optional
devices:
- /dev/dri:/dev/dri #optional
- /dev/vchiq:/dev/vchiq #optional
- /dev/video10:/dev/video10 #optional
- /dev/video11:/dev/video11 #optional
- /dev/video12:/dev/video12 #optional
restart: unless-stopped

Suggestion

I managed to fix this easily by changing network_mod to "host". My suggestion is that this should be the default setting, i.e. include network_mode: "host" in the yaml-snippet.

@project-bot project-bot bot added this to To do in Issue & PR Tracker Jul 12, 2020
@aptalca
Copy link
Member

aptalca commented Jul 12, 2020

For plex, we recommended host, but got a ton of requests for bridge networking.

For this we recommend bridge, but the user can use it with host networking if they like.

At the end of the day, we have to recommend one or the other and for every user who prefers one, there is another user who prefers the other.

@aptalca aptalca closed this as completed Jul 12, 2020
Issue & PR Tracker automation moved this from To do to Done Jul 12, 2020
@tophee
Copy link
Author

tophee commented Jul 12, 2020

I completely understand that "either way is wrong".

What I'd suggest, then, is to add something like this to the yam snippet:

# network_mode: "host" # optional. Uncomment if you want to use DNLA discovery 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants