# Exposing GPU to containers

**URL:** <https://forums.suse.com/t/exposing-gpu-to-containers/6690>\
**Category:** RancherOS\
**Created:** [June 21, 2017, 11:17am UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690 "2017-06-21T11:17:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TDabasinskas](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tdabasinskas/32/2564_2.png) [@TDabasinskas](https://forums.suse.com/u/TDabasinskas)\
**Post date:** [June 21, 2017, 11:17am UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690/1 "2017-06-21T11:17:39Z")

</div>

Hello,

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](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](https://docs.rancher.com/os/configuration/loading-kernel-modules/)?

Thank you.

---

<div class="post-metadata">

**Author:** ![Kok-Liang\_Lim](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kok-liang_lim/32/2867_2.png) [@Kok-Liang\_Lim](https://forums.suse.com/u/Kok-Liang_Lim)\
**Post date:** [September 27, 2017, 5:39am UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690/2 "2017-09-27T05:39:44Z")

</div>

> [@TDabasinskas](#):
>
> There are some guides on how people get it working inside a Docker container, e.g. [Plex version 1.4.x Hardware (HW) transcoding working in docker on i7-4790K - NAS & Devices - Plex Forum](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 am also facing the same problem, since it has been a few months, I believe there is no solution=(

---

<div class="post-metadata">

**Author:** ![Atze](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/atze/32/2855_2.png) [@Atze](https://forums.suse.com/u/Atze)\
**Post date:** [September 27, 2017, 8:31am UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690/3 "2017-09-27T08:31:37Z")

</div>

have you tried to add the kernel-extra service?

[http://rancher.com/docs/os/v1.1/en/configuration/kernel-modules-kernel-headers/](http://rancher.com/docs/os/v1.1/en/configuration/kernel-modules-kernel-headers/)

---

<div class="post-metadata">

**Author:** ![fullofentropy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/fullofentropy/32/3160_2.png) [@fullofentropy](https://forums.suse.com/u/fullofentropy)\
**Post date:** [October 9, 2017, 10:35pm UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690/4 "2017-10-09T22:35:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Atze](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/atze/32/2855_2.png) [@Atze](https://forums.suse.com/u/Atze)\
**Post date:** [October 11, 2017, 7:18am UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690/5 "2017-10-11T07:18:10Z")

</div>

Hi,

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

---

<div class="post-metadata">

**Author:** ![divThis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/divthis/32/6031_2.png) [@divThis](https://forums.suse.com/u/divThis)\
**Post date:** [January 27, 2020, 9:31pm UTC](https://forums.suse.com/t/exposing-gpu-to-containers/6690/6 "2020-01-27T21:31:07Z")

</div>

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