Project

General

Profile

Tvheadend from Docker can't find my tuner

Added by John Lazos about 2 months ago

Hi guys, I have tvheadend installed on the Debian host system, but I would like to use it from a Docker container but it can't find the tuner. From Debian without Docker it recognizes it perfectly.

This is the docker compose. My tuner is an xboxone TV tunner and from tvheadend installed in Debian it says that it is in this path:

/dev/dvb/adapter0

I add that path to docker-compose but once the container is mounted it doesn't find any tuner. Maybe you are doing something wrong.

Debian:

Docker:

Docker compose:

tvheadend:

version: "3" 
services:
  tvheadend:
    image: lscr.io/linuxserver/tvheadend
    container_name: tvheadend
    network_mode: host
    environment:
      - PUID=1001
      - PGID=100
      - TZ=Europe/Madrid
    volumes:
      - /_aplicaciones/tvheadend:/config
      - /srv/dev-disk-by-uuid-c8175ed0-e2a8-473f-846c-36e5dc79e4bd/GRABACIONES_TV:/recordings
    ports:
      - 9999:9981
      - 9991:9982
    devices:
      - /dev/dri:/dev/dri #optional
      - /dev/dvb/adapter0:/dev/dvb #optional
    restart: unless-stopped

Replies (4)

RE: Tvheadend from Docker can't find my tuner - Added by saen acro about 2 months ago

I dont use peudovirtualisation,
but seems that you do not redirect tuners.

docker run -d \
    -p 9981:9981 \
    -p 9982:9982 \
    --name=tvheadend \
    -v /apps/docker/tvheadend/recorded:/data \
    -v /apps/docker/tvheadend:/config \
    -v /etc/localtime:/etc/localtime:ro \
    --device=/dev/dvb \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    binhex/arch-tvheadend
--device /dev/dvb:/dev/dvb

Do you relese tuners in host OS to use them in docker?

RE: Tvheadend from Docker can't find my tuner - Added by John Lazos about 2 months ago

Thank you very much for your answer. The truth is that I have only been using Debian for a short time, could it be permission problems? But is it strange that installed in the system does not give any error and in Docker yes, mo? Thank you very much.

RE: Tvheadend from Docker can't find my tuner - Added by saen acro about 2 months ago

In your config dvb adapter i not redirected as on real pc
It's no so good idea to change path with app search for.

your config

/dev/dvb/adapter0:/dev/dvb

Others config

/dev/dvb:/dev/dvb

RE: Tvheadend from Docker can't find my tuner - Added by John Lazos about 2 months ago

saen acro wrote:

In your config dvb adapter i not redirected as on real pc
It's no so good idea to change path with app search for.

your config
[...]

Others config
[...]

Thanks mate. I put it like this because the way it comes by default didn't work either. Do you think it could be permissions issues?

    (1-4/4)