[mythtv-users] Docker with mythtv and hdhomerun
Mark Perkins
perkins1724 at hotmail.com
Sun Aug 13 01:20:56 UTC 2017
On 13 August 2017 1:23:09 am Monkey Pet <monkeypet at gmail.com> wrote:
> Trying to setup mythtv-backend in a docker container. However, running
> into issues trying to get the networking setup correctly with the hdhomerun
> tuner card. Anyone got this to work? Basically, i can't seem to get the
> bridge working correctly, so my hdhomerun network tuner doesn't work. I
> don't know enough about docker's internal networking scheme to figure it
> out...
>
>
> https://github.com/jgoerzen/docker-mythtv
>
> Author noted this:
> (pasted from his site above)
>
> Also, if you use a capture device like the HDHomeRun which communicates
> back to MythTV via random UDP ports, it can be just about impossible to
> make things work with the standard docker port forwarding.
>
> However, there are some workarounds.
>
> You can:
>
> - Use NAT reflection on your firewall to forward packets back in to your
> network.
> - Bridge your Docker containers to the network
> <https://developer.ibm.com/recipes/tutorials/bridge-the-docker-containers-to-external-network/>
> - An example: docker network create --driver=bridge --ip-range=
> 192.168.0.192/29 --subnet=192.168.0.0/24 --aux-address
> "DefaultGatewayIPv4=192.168.0.1" -o
> "com.docker.network.bridge.name=brlan1"
> brlan1
> - After that, you can add network=brlan1 --ip=192.168.0.193 do
> your docker
> run, and you do not need any -pbecause it will be directly accessible
> on the new IP.
> - Add egress iptables rules to your frontends
> - You can set the BackendServerIP and MasterServerIP to the "visible" IP
> of the backend (will probably have to do this via mysql). mythbackend will
> fail to bind to a visible IP, but a userland redirector like redir may
> do the trick.
>
> I tried adding -O BackendServerIP=blah -O MasterServerIP=blah to my
> mythfrontend command line. That let it boot, but wasn't sufficient for
> streaming.
>
>
>
> ----------
> _______________________________________________
In my mind a bridge network would be the best place to start. (as others have said be aware of what that means for your network security etc).
How are you starting your container currently?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170813/f4726da1/attachment.html>
More information about the mythtv-users
mailing list