jellyfin-archive / jellyfin-docs

Documentation for Jellyfin
https://jellyfin.org
Creative Commons Attribution Share Alike 4.0 International
143 stars 220 forks source link

group_add not available in compose v3 #696

Open Asleep-at-the-wheel opened 2 years ago

Asleep-at-the-wheel commented 2 years ago

Hi all,

I followed the instructions to the line here. Using my environment:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:    20.04
Codename:   focal

Note: System is up to date:

dpkg-query -l | grep docker
ii  docker-compose                        1.25.0-1                          all          Punctual, lightweight development environments using Docker
ii  docker.io                             20.10.7-0ubuntu5~20.04.2          amd64        Linux container runtime
ii  python3-docker                        4.1.0-1                           all          Python 3 wrapper to access docker.io's control socket
ii  python3-dockerpty                     0.4.1-2                           all          Pseudo-tty handler for docker Python client (Python 3.x)
lshw -c video
  *-display                 
       description: VGA compatible controller
       product: HD Graphics 530
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:127 memory:f6000000-f6ffffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          8
On-line CPU(s) list:             0-7
Thread(s) per core:              2
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           94
Model name:                      Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz
Stepping:                        3
CPU MHz:                         800.058
CPU max MHz:                     3600.0000
CPU min MHz:                     800.0000
BogoMIPS:                        5599.85

My compose file snip:

version: '3'
 services:
  jellyfin:
   container_name: jellyfin
   restart: unless-stopped
   volumes:
    - /mnt/containers/jellyfin/data:/config
    - /mnt/containers/jellyfin/cache:/cache
    - /mnt/Multimedia:/media
   network_mode: "host"
   user: 1000:1000
   group_add:
    - 109
   devices:
    - /dev/dri/renderD128:/dev/dri/renderD128
    - /dev/dri/card0:/dev/dri/card0
   image: jellyfin/jellyfin:latest

To be met with:

docker-compose up -d --remove-orphans
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.jellyfin: 'group_add'

There seems to be some discussion of this option not being available around the place for various things, some people say it is and some people say its not. I guess the documentation might need an update?

I found simply not even including the group or user directives made the QSV work with my iGPU (or at least, I believe is now working; judging from the fact I get no more errors and my container hosts fan doesn't sound like it's going to explode while trans-coding like it did before). Any way to verify inside the container would be super).

version: '3'
services:
 jellyfin:
  container_name: jellyfin
  restart: unless-stopped
  volumes:
   - /mnt/containers/jellyfin/data:/config
   - /mnt/containers/jellyfin/cache:/cache
   - /mnt/Multimedia:/media
  network_mode: "host"
  devices:
   - /dev/dri/renderD128:/dev/dri/renderD128
   - /dev/dri/card0:/dev/dri/card0
  image: jellyfin/jellyfin:latest`

I can make an update to the documentation mentioning something like this if you like?