2024-07-10, 05:59 PM
(This post was last modified: 2024-07-11, 09:24 AM by Garret. Edited 1 time in total.)
I have been running for several years Jellyfin via a docker container from the linuxserver image on a Raspberry Pi 4. Recently I switched to an Intel N100 machine and installed NixOS. I wanted to take full advantage of the QuickSync hardware acceleration offered by the N100 platform but found out that the linuxserver image did not contain all the necessary drivers. After trying the official container image, hardware acceleration seems to work to its full potential (even though I have to dig more in all the settings...).
I only have one issue: with the linuxserver container, I could set uid & gid through docker environment variables. Everything worked. I could see I could do the same with the official image by adding user: uid:gid in the docker-compose. When I do that, Jellyfin starts but it is a bit half-broken: not all preview pictures load, some settings are not saved when clicking "save" (sometimes an error message appears) and playback does not start when transcoding is needed. All the issues disappear when I comment user: uid:gid, thus the container runs as root.
Before running the container, I made sure to chown all the Jellyfin folders with the uid & gid belonging to my user. My user belongs to the group wheel and users(this is the one I used as gid), but I also added it to the groups video and render. After restarting the container, the issues are still there.
Do you know how could I achieve to run the Jellyfin official docker container with the uid & gid of my user? I have plenty of other containers (mostly from linuxserver) and they all run fine by setting the uid & gid of my user.
I only have one issue: with the linuxserver container, I could set uid & gid through docker environment variables. Everything worked. I could see I could do the same with the official image by adding user: uid:gid in the docker-compose. When I do that, Jellyfin starts but it is a bit half-broken: not all preview pictures load, some settings are not saved when clicking "save" (sometimes an error message appears) and playback does not start when transcoding is needed. All the issues disappear when I comment user: uid:gid, thus the container runs as root.
Before running the container, I made sure to chown all the Jellyfin folders with the uid & gid belonging to my user. My user belongs to the group wheel and users(this is the one I used as gid), but I also added it to the groups video and render. After restarting the container, the issues are still there.
Do you know how could I achieve to run the Jellyfin official docker container with the uid & gid of my user? I have plenty of other containers (mostly from linuxserver) and they all run fine by setting the uid & gid of my user.