srakachain.blogg.se

Plex docker
Plex docker










plex docker
  1. #PLEX DOCKER INSTALL#
  2. #PLEX DOCKER DRIVERS#

| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. You should then be able to check nvidia-smi and see the process and (mostly memory) usage.

plex docker

Now start watching something and make sure it's transcoding. Once Plex is up you'll want to go to Settings > Transcoder and enable Use hardware acceleration when available and Use hardware-accelerated video encoding. For example, my plex is launched with a command similar to this: docker run -name plex -restart unless-stopped -gpus all -network=host -env VERSION=latest -volume /plex:/config -volume /media:/media linuxserver/plex Note that docker-compose does not have support for GPUs yet so you will have to do this with docker run for your container. Next step is to add the -gpus all ( see usage here) to your Plex container. With docker restarted, you should be able to run docker run -gpus all nvidia/cuda:10.0-base nvidia-smi and see the same output as before on the host.

#PLEX DOCKER INSTALL#

Sudo apt-get install -y nvidia-container-toolkit curl -sL | sudo apt-key add -Ĭurl -sL | sudo tee /etc/apt//nvidia-docker.list Install Docker if you haven't and then we'll add the nvidia-docker gpg key and apt repository. Once you got that done you will have to restart to not have the nouveau get in the way, then once you're back up you should be able to run nvidia-smi and see your GPU. Sudo apt install -yt buster-backports nvidia-driver libcuda1 libnvidia-encode1 libnvcuvid1 Sudo apt install linux-headers-$(uname -r|sed 's/*-*-//') echo "deb buster-backports main contrib non-free" | sudo tee /etc/apt//buster-backports.list ffmpeg (which Plex uses for transcoding) requires at least 418.30 so check what distro provides if you aren't on Debian.

#PLEX DOCKER DRIVERS#

If you're on stretch or earlier, you will have to install the nvidia drivers manually. nvidia-driverįirstly, we'll install the latest nvidia drivers for Debian buster. I installed an NVIDIA Quadro RTX 4000 in my 2U server recently and after installing all the packages required and one flag to docker, Plex was able to use the GPU. With Docker 19.03 adding native support for GPU passthrough and Plex support for GPU transcoding being reliable and stabe, it's now very easy to get both working together for some super duper GPU transcoding.












Plex docker