2023-06-23, 02:31 AM
(This post was last modified: 2023-06-23, 02:34 AM by dekomoon. Edited 3 times in total.)
According to instructions on Docker Hub, you will need to pass this when you start the container
or for compose files ->
I had to map my Rx 7600 gpu for hardware acceleration earlier (plus an extra step of adding AMD linuxserver mod to my compose) and it worked for me, but I used Podman and not Docker.
This is an example of the compose file I used (ignore DOCKER_MODS env var and group_add):
Also, I encountered some permission errors earlier and have not figured out how to fix it... Jellyfin in container can not detect my GPU in /dev/dri without giving my Podman container root privileges. Still don't know what permissions I need to change for rootless mode.
Code:
--device=/dev/dri:/dev/dri
or for compose files ->
Code:
device:
- "/dev/dri:/dev/dri"
I had to map my Rx 7600 gpu for hardware acceleration earlier (plus an extra step of adding AMD linuxserver mod to my compose) and it worked for me, but I used Podman and not Docker.
This is an example of the compose file I used (ignore DOCKER_MODS env var and group_add):
Code:
version: '3.5'
services:
jellyfin:
image: docker.io/linuxserver/jellyfin:latest
container_name: jellyfin
group_add:
- "44"
environment:
- DOCKER_MODS=docker.io/linuxserver/mods:jellyfin-amd
- PUID=0
- PGID=0
- TZ=America/New_York
devices:
- /dev/dri:/dev/dri
- /dev/kfd:/dev/kfd
ports:
- "8096:8096/tcp"
volumes:
- ./config:/config
- /mnt/data/media/miku:/data/miku
- /mnt/data/media/anime:/data/anime
restart: 'unless-stopped'
Also, I encountered some permission errors earlier and have not figured out how to fix it... Jellyfin in container can not detect my GPU in /dev/dri without giving my Podman container root privileges. Still don't know what permissions I need to change for rootless mode.