Exposing GPU to containers


I’m using RancherOS to run an app (Plex) on an Intel Gen7 i3 NUC. The application supports hardware transcoding, but I cannot seem to get it working. As my Linux knowledge isn’t very deep, I was hoping someone could point me to the right direction.

There are some guides on how people get it working inside a Docker container, e.g. https://forums.plex.tv/discussion/254541/plex-version-1-4-x-hardware-hw-transcoding-working-in-docker-on-i7-4790k, but the guides involves exposing /dev/dri devices to the container. Anyhow, there does not seem to be any devices under /dev/dri on my RancherOS installation.

I’m I missing something? Should some additional kernel modules be loaded?

Thank you.

1 Like

I am also facing the same problem, since it has been a few months, I believe there is no solution=(

have you tried to add the kernel-extra service?


I am new to RancherOS as well as containers, if you are able to get the transcoding to work, please share your recipe. Thanks!


I’m not using transcoding, but i do use hardware accel. You could try to enable the switch --privileged

Did you ever find a solution to this? I’m running into the same exact issue.