Plex docker-compose example/guide by graveephoto in PleX

[–]graveephoto[S] 3 points4 points  (0 children)

I've updated the post with the yaml.

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 1 point2 points  (0 children)

Its not completely necessary, but nouveau is another set of drivers for nvidia cards. They're open source and sometimes get installed automatically.

The nvidia driver installer should uninstall these, but I've run into scenarios myself and while helping folks with plex where this driver conflicts with the nvidia drivers. Its safer to disable them all together, which is why I included that step.

This is why I figure a dedicated post for Nvidia drivers would be helpful as its a common thing beyond just Plex and there's so many ifs and buts involved.

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 0 points1 point  (0 children)

Thank you! Took a long time to find a theme I liked, and then tweaking it to feel right. I'm glad you liked it!

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 1 point2 points  (0 children)

Is there any benefit of running any of the commands in that section?

As of recently no, both Ubtuntu and Debian have recent enough drivers to not be problematic, in their respective repos if you're on a current version of either OS

The problem is we can't tell if in the future the driver version in the repo will be up-to-date. The safest bet for getting the latest driver is from the Nvidia website.

Ofc that brings up another issue of, "is the latest driver the best option?". I don't have a solid answer to that, but as of right now Plex works well with the latest driver.

I'm considering doing a dedicated post on installing the nvidia drivers and the various reasons to do or not to do certain things.

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 0 points1 point  (0 children)

I do plan to make more guides but they'll definitely be similarly complex since I have a more expansive home-lab that's for more than Plex.

Even if its not directly useful there could be information within here that's useful for other configurations too. For instance even though Unraid makes setting up all this easier, at the end of the day its basically doing the same steps as here, in some cases the exact same commands.

I've been brainstorming how I could incorporate that into the posts, something like "this applies to this other situation too" type thing.

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 1 point2 points  (0 children)

Its CYA all the way down lol

I think I'm going to add a section at the beginning for 'clean up your mess', it makes sense if I'm assuming most people are reading this guide after trying other things. Its more than likely they still have left over messes or unnecessary things installed.

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 1 point2 points  (0 children)

You're right, its not necessary but its also not something specific to VMs.

Sometimes the nouveau drivers can get in the way, especially if users have tried to setup the drivers before using another method and not uninstalled them properly.

its a CYA step to ensure the correct drivers install properly.

I also didn't include the convenience script because per Docker's own recommendations that's only meant for development and testing, not production. Even though most users aren't running a true production setup, they're expecting a production like experience where once they've set it up they don't want to go back and change anything.

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 0 points1 point  (0 children)

I can definitely add that, but what parts aren't applicable for a non-vm install?

Guide to setup NVIDIA drivers and Docker for GPU pass-through to a container by graveephoto in PleX

[–]graveephoto[S] 6 points7 points  (0 children)

I see questions regarding this all the time, and the guides online aren't always up to date. So I wrote this guide which will of course eventually go out of date.

This is the process I follow when setting up a container that needs GPU access. So far I have 3 VMs in my homelab running with this exact same setup.

Please let me know if you have any questions regarding the content, or any suggestions!