Hi all - recently moved my old docker setup across to Podman rootless containers, however I am having some trouble with getting my Plex container to use the on CPU hardware transcoding.

“/dev/dri” device is being passed into the container and after reading, I also added “–group-add=keep-groups” to my configuration.

Still no luck getting the “video” group to the plex user inside the container so it can access the device.

Anyone successfully running rootless Plex with H/W transcode?

  • aberrate_junior_beatnik
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 year ago

    You might need to also add --gidmap=n:{video_gid}:1, otherwise the host video group won’t have a matching group in the container’s user namespace. n can be any number you pick, so long as it doesn’t clash with an existing gid in the container. Unsure if --group-add=keep-groups does this already. You can check /proc/self/gid_map to see what is already being mapped.

    Of course the container user will need group n (from the gidmap flag above) either as primary or in the supplementary groups.

    [edit: I wrote this at 3am on my phone, and I misunderstood how the --gidmap flag works. This code won’t work, but I think the diagnosis is correct: there’s no mapping from the host’s video group to the container’s user namespace, see my other comment in reply to OP]