Search Preview
GPU transcoding with Emby / Plex using docker-nvidia | Funky Penguin
funkypenguin.co.nzHow to use nvidia-docker to transcode with Emby / Plex using your GPU
.co.nz > funkypenguin.co.nz
SEO audit: Content analysis
Language | Error! No language localisation is found. | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Title | GPU transcoding with Emby / Plex using docker-nvidia | Funky Penguin | ||||||||||||||||||||||||||||||||||||
Text / HTML ratio | 35 % | ||||||||||||||||||||||||||||||||||||
Frame | Excellent! The website does not use iFrame solutions. | ||||||||||||||||||||||||||||||||||||
Flash | Excellent! The website does not have any flash contents. | ||||||||||||||||||||||||||||||||||||
Keywords cloud | GPU docker container sudo nvidiadocker dockernvidia nvidiasmi ln nvidiadocker2 transcoding usrsharemuninpluginsnvidia_gpu_ NVIDIA runtime default Docker Plex Emby Skip support host | ||||||||||||||||||||||||||||||||||||
Keywords consistency |
|
||||||||||||||||||||||||||||||||||||
Headings |
|
||||||||||||||||||||||||||||||||||||
Images | We found 2 images on this web page. |
SEO Keywords (Single)
Keyword | Occurrence | Density |
---|---|---|
GPU | 22 | 1.10 % |
docker | 12 | 0.60 % |
container | 10 | 0.50 % |
sudo | 10 | 0.50 % |
nvidiadocker | 8 | 0.40 % |
dockernvidia | 6 | 0.30 % |
nvidiasmi | 5 | 0.25 % |
ln | 5 | 0.25 % |
nvidiadocker2 | 5 | 0.25 % |
transcoding | 5 | 0.25 % |
usrsharemuninpluginsnvidia_gpu_ | 5 | 0.25 % |
NVIDIA | 5 | 0.25 % |
runtime | 4 | 0.20 % |
default | 4 | 0.20 % |
Docker | 4 | 0.20 % |
Plex | 4 | 0.20 % |
Emby | 4 | 0.20 % |
Skip | 4 | 0.20 % |
support | 4 | 0.20 % |
host | 4 | 0.20 % |
SEO Keywords (Two Word)
Keyword | Occurrence | Density |
---|---|---|
with the | 8 | 0.40 % |
ln s | 5 | 0.25 % |
to the | 5 | 0.25 % |
s usrsharemuninpluginsnvidia_gpu_ | 5 | 0.25 % |
a container | 4 | 0.20 % |
the container | 4 | 0.20 % |
dockernvidia GPU | 4 | 0.20 % |
a GPU | 4 | 0.20 % |
with Emby | 3 | 0.15 % |
Install nvidiadocker2 | 3 | 0.15 % |
Emby Plex | 3 | 0.15 % |
transcoding with | 3 | 0.15 % |
GPU transcoding | 3 | 0.15 % |
the GPU | 3 | 0.15 % |
curl s | 3 | 0.15 % |
container with | 3 | 0.15 % |
GPU support | 3 | 0.15 % |
the default | 3 | 0.15 % |
If you | 3 | 0.15 % |
the latest | 3 | 0.15 % |
SEO Keywords (Three Word)
Keyword | Occurrence | Density | Possible Spam |
---|---|---|---|
ln s usrsharemuninpluginsnvidia_gpu_ | 5 | 0.25 % | No |
pkill SIGHUP dockerd | 3 | 0.15 % | No |
curl s L | 3 | 0.15 % | No |
a container with | 3 | 0.15 % | No |
to the container | 3 | 0.15 % | No |
transcoding with Emby | 3 | 0.15 % | No |
GPU transcoding with | 3 | 0.15 % | No |
with Emby Plex | 3 | 0.15 % | No |
sudo pkill SIGHUP | 3 | 0.15 % | No |
nvidiasmi with the | 2 | 0.10 % | No |
Plex under docker? | 2 | 0.10 % | No |
GPU usage with | 2 | 0.10 % | No |
dockernvidia GPU usage | 2 | 0.10 % | No |
Monitoring dockernvidia GPU | 2 | 0.10 % | No |
dockernvidia GPU support | 2 | 0.10 % | No |
with dockernvidia GPU | 2 | 0.10 % | No |
container with dockernvidia | 2 | 0.10 % | No |
nvidiadocker2 sudo pkill | 2 | 0.10 % | No |
Launching a container | 2 | 0.10 % | No |
the default runtime | 2 | 0.10 % | No |
SEO Keywords (Four Word)
Keyword | Occurrence | Density | Possible Spam |
---|---|---|---|
sudo pkill SIGHUP dockerd | 3 | 0.15 % | No |
GPU transcoding with Emby | 3 | 0.15 % | No |
transcoding with Emby Plex | 3 | 0.15 % | No |
accessing a GPU in | 2 | 0.10 % | No |
I enable GPU transcoding | 2 | 0.10 % | No |
do I enable GPU | 2 | 0.10 % | No |
How do I enable | 2 | 0.10 % | No |
Make nvidiadocker the default | 2 | 0.10 % | No |
in a docker container? | 2 | 0.10 % | No |
pkill SIGHUP dockerd Test | 2 | 0.10 % | No |
GPU in a docker | 2 | 0.10 % | No |
Add the package repositories | 2 | 0.10 % | No |
a GPU in a | 2 | 0.10 % | No |
about accessing a GPU | 2 | 0.10 % | No |
with Emby Plex under | 2 | 0.10 % | No |
deal about accessing a | 2 | 0.10 % | No |
big deal about accessing | 2 | 0.10 % | No |
the big deal about | 2 | 0.10 % | No |
What’s the big deal | 2 | 0.10 % | No |
Launching a container with | 2 | 0.10 % | No |
Internal links in - funkypenguin.co.nz
Archive | Funky Penguin
Contact | Funky Penguin
Search | Funky Penguin
How I removed a file from my git repo history | Funky Penguin
OpenStack LBAASv2 failed connection debugging | Funky Penguin
GPU transcoding with Emby / Plex using docker-nvidia | Funky Penguin
KVM VMs on kernel-2.6.32-696.30.1.el6.x86_64 on AMD-based hypervisor fail to boot | Funky Penguin
Should you do microcode updates? | Funky Penguin
Wife-friendly script to transfer media to USB from linux server | Funky Penguin
What is TurtleCoin and why do I care? | Funky Penguin
Funky Penguin | Upgrading the world through the skilled application of technology
Funky Penguin | Upgrading the world through the skilled application of technology
Funky Penguin | Upgrading the world through the skilled application of technology
Funkypenguin.co.nz Spined HTML
GPU transcoding with Emby / Plex using docker-nvidia | Funky Penguin Skip links Skip to primary navigation Skip to content Skip to footer Menu HomeArchiveContactSearchCookbookResumeKitchen Funky Penguin Upgrading the world through the skilled using of technology GPU transcoding with Emby / Plex using docker-nvidia David Young 3 min read June 19, 2018 Categories note Tags docker Recently I helped a Patron to setup an instance of my Emby docker-swarm recipe, but with the uneaten bonus of having all transcoding washed-up using his GPU. Note that this would work equally well for Plex, or any other “Dockerized” using which would, technically, support GPU processing. Table of Contents What’s the big deal well-nigh accessing a GPU in a docker container? How do I enable GPU transcoding with Emby / Plex under docker? Ubuntu RedHat / CentOS Make nvidia-docker the default runtime Launching a container with docker-nvidia GPU support Monitoring docker-nvidia GPU usage (with Munin) What’s the big deal well-nigh accessing a GPU in a docker container? Normally, passing a GPU to a container would be a nonflexible ask of Docker - you’d need to: Figure out a way to pass through a GPU device to the container, Have the (quite large) GPU drivers installed within the container image and kept up-to-date, and you’d Loose wangle to the GPU from the host platform as soon as you launched the docker container. Fortunately, if you have an NVIDIA GPU, this is all taken superintendency of with the docker-nvidia package, maintained and supported by NVIDIA themselves. There’s a detailed introduction on the NVIDIA Developer Blog, but to summarize, nvidia-docker is a wrapper virtually docker, which (when launched with the towardly ENV variable!) will pass the necessary devices and suburbanite files from the docker host to the container, meaning that without any remoter adjustment, container images like emby/emby-server have full wangle to your host’s GPU(s) for transcoding! How do I enable GPU transcoding with Emby / Plex under docker? If you want to learn - read the NVIDIA Developer Blog entry. If you just want the answer, follow this process: Install the latest NVIDIA drivers for your system Have a supported version of Docker Install nvidia-docker2 (below) Ubuntu # Add the package repositories flourish -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \ sudo apt-key add - distribution=$(. /etc/os-release;echo $ID$VERSION_ID) flourish -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \ sudo tee /etc/apt/sources.list.d/nvidia-docker.list sudo apt-get update # Install nvidia-docker2 and reload the Docker daemon configuration sudo apt-get install -y nvidia-docker2 sudo pkill -SIGHUP dockerd # Test nvidia-smi with the latest official CUDA image docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi RedHat / CentOS # If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f sudo yum remove nvidia-docker # Add the package repositories distribution=$(. /etc/os-release;echo $ID$VERSION_ID) flourish -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | \ sudo tee /etc/yum.repos.d/nvidia-docker.repo # Install nvidia-docker2 and reload the Docker daemon configuration sudo yum install -y nvidia-docker2 sudo pkill -SIGHUP dockerd # Test nvidia-smi with the latest official CUDA image docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi Make nvidia-docker the default runtime You could stop here, and manage your containers using the nvidia-docker runtime. However, I like to edit /etc/docker/daemon.json, and gravity nvidia-docker to be used by default, by adding: "default-runtime": "nvidia", And then restarting docker with sudo pkill -SIGHUP dockerd Launching a container with docker-nvidia GPU support Even with the default nvidia runtime, the magic GPU support doesn’t happen unless you launch a container with the NVIDIA_VISIBLE_DEVICES=all environment variable set. (Thanks to @flx42 for clarifying this for me) The wholesomeness to subtracting the default-runtime treatise above, is that you can now deploy your Emby/Plex/Whatever app under swarm exactly as usual, but proceeds all the benefits of having your GPU misogynist to your app! Monitoring docker-nvidia GPU usage (with Munin) Since nvidia-docker now exposes the GPU to the container while still keeping it misogynist to the host OS, you can run nvidia-smi on the host to monitor how the GPU is performing. I’ve been working on a recipe for a Munin server, so I widow the nvidia_ wildcard plugin to monitor nvida GPU stats. Being a “wildcard”, it’s necessary to reprinting the plugin to /usr/share/munin/plugins, and then symlink it mulitple times to /etc/munin/plugins/ as below: ln -s /usr/share/munin/plugins/nvidia_gpu_ /etc/munin/plugins/nvidia_gpu_temp ln -s /usr/share/munin/plugins/nvidia_gpu_ /etc/munin/plugins/nvidia_gpu_mem ln -s /usr/share/munin/plugins/nvidia_gpu_ /etc/munin/plugins/nvidia_gpu_fan ln -s /usr/share/munin/plugins/nvidia_gpu_ /etc/munin/plugins/nvidia_gpu_power ln -s /usr/share/munin/plugins/nvidia_gpu_ /etc/munin/plugins/nvidia_gpu_utilization Share Tweet LinkedIn Reddit Previous Should you do microcode updates? Next OpenStack LBAASv2 failed connection debugging Copyright © 2018 Funky Penguin. Site logo penguin icon made by Freepik from Flaticon is licensed by Creative Commons BY 3.0. Made with the Jekyll So Simple theme.