2024-07-05, 08:38 PM
You shouldn't be creating a group. The render group should already exist and the GPU should already be a member of it.
The relevant part of my docker compose for reference.
Code:
chris@rat-trap:~$ getent group render | cut -d: -f3
993
chris@rat-trap:~$ ll /dev/dri
total 0
drwxr-xr-x 3 root root 100 Jun 26 12:51 ./
drwxr-xr-x 22 root root 4920 Jun 26 12:51 ../
drwxr-xr-x 2 root root 80 Jun 26 12:51 by-path/
crw-rw---- 1 root video 226, 1 Jun 26 12:51 card1
crw-rw---- 1 root render 226, 128 Jun 26 12:51 renderD128
The relevant part of my docker compose for reference.
Code:
services:
jellyfin-testing:
image: jellyfin/jellyfin:10.9.7
container_name: jellyfin-stable-testing
user: 105:104
group_add:
- "993" # Intel render group
networks:
blackmoon:
ipv4_address: 172.16.100.2
expose:
- 8096
volumes:
- ./jellyfin-stable-data/config:/config
- ./jellyfin-stable-data/cache:/cache
- /media/library:/media/library:ro
- /media/storage2:/media/storage2:ro
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
restart: 'unless-stopped