any chance to build this image with NVIDIA support on Docker Desktop? current version is not able to pickup GPU, no problem on other images that have support for NVIDIA included. anyone with experience or suggestion?
i am running docker-desktop on WIN11, wsl2, ubuntu 22.04 LTS.
my docker-compose:
version: “2.1”
services:
tvheadend: #privileged: true
container_name: TVHjan-server
image: lscr.io/linuxserver/tvheadend:latest
environment: #- PUID=0 #- PGID=0
- TZ=Europe/Prague
- RUN_OPTS=–satip_xml http://192.168.9.217:9981/satip_server/desc.xml
deploy: # <------------- Add this section
resources:
reservations:
devices:
- driver: nvidia #device_ids: [‘0’] # this is only needed when using multiple GPUs
capabilities: [gpu]
volumes:
- /home/jan-server-ubuntu/tvheadend/config:/config
- /mnt/d/Recordings:/recordings
ports:
- 9981:9981
- 9982:9982
devices:
- /dev/dri:/dev/dri #optional #- /dev/dvb:/dev/dvb #optional
restart: unless-stopped
We have no intention of doing anything specifically to support docker desktop (and obviously not windows) or any other ui (barring our already automated unraid templates). We suggest using docker run or docker compose, that is what we test with and what we support.
that all said, i am just glancing at tvheadend’s repo, but im not seeing anywhere that they indicate they support GPUs? is there a link?
i would expect you could do this with ffmpeg flags, but im not seeing anything from the devs beyond that capability
thx for quick feed, i understand your motivation for as much automation as possible. pity for me…
tvh does support hardware acceleration for sure, as long as HW allows it and it is compiled with that feature.
i was able to find two images with NVIDIA support built in (probably based on LSIO), but there are some other problem in those and i could not get hold of the authors. Docker Docker