• You can support more guides like this Click to Donate
  • Version
  • Create Date June 9, 2024
  • Last Updated June 19, 2024
  • Installation Support Ask Support
  • Number of views

Stream TV shows, movies, and sports


In this guide i will show how to install Plex with hardware transcoding using Portainer.

If you already have docker and portainer installed and you know your user id and group id, skip to Step 5

Follow this guide to install docker: How to install docker

Follow this guide to install portainer: How to install portainer

Follow this guide to connect to your NAS terminal to find your username ID and group ID: How to connect to NAS via terminal using putty

Find your current time zone on this website, as example for Brussels is:


Open Portainer by typing in your web browser http://yournasip:19000

After you login on Portainer, go to Home, then click on your Local Environment

Go to Stacks and click on Add stack

On the name type plex, select Web editor and paste the code below.

Make sure you replace the PUID and PGID with the values for your user found on Step 3
Make sure you replace the TZ value with the value for your specific zone found on Step 4
For variable PLEX_CLAIM, open to generate a claim Token required for the server to be automatically loged in.

restart: you can choose from alwaysunless-stopped, or on-failure[:number of retries]

/volume1/Movies:/data/Movies - You can use as many or as few of these parameters as required to provide your media to the container. (used /volume1/Movies in this example)

version: "3.9"
        container_name: plex
        network_mode: host
            - TZ=Europe/Brussels
            - PLEX_CLAIM=<claimToken>
            - ADVERTISE_IP=
            - PUID=10000
            - PGID=100
        hostname: PlexServer
            - /volume1/DockerData/plex:/config
            - /volume1/DockerData/plex/transcode:/transcode
            - /volume1/Movies:/data/Movies
            - /dev/dri:/dev/dri
        image: plexinc/pms-docker
        restart: unless-stopped

Scroll down and click on Deploy the stack.

If everything goes well, you will get a message that the stack was successfully deployed.

You will see now the container running

Now on your web browser type http://yournasip:32400/web and finish the plex setup.
When adding your library, remember your media is located in /data

Plex is now installed with hardware transcoding enabled (for the ones with plex pass)

Plex Media Server v1.40.2.8395-c67dce28e - Docker Docker Container x86_64 - build: linux-x86_64 debian - GMT 02:00
Jun 09, 2024 23:45:04.132 [139942005680952] INFO - Linux version: 6.1.27, language: en-US
Jun 09, 2024 23:45:04.132 [139942005680952] INFO - Processor: 4-core Intel(R) N100
Jun 09, 2024 23:45:04.132 [139942005680952] INFO - Compiler is - Clang 11.0.1 ( 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
Jun 09, 2024 23:45:04.132 [139942005680952] INFO - /usr/lib/plexmediaserver/Plex Media Server
Jun 09, 2024 23:45:04.191 [139942008240784] DEBUG - Captured session 0.
Jun 09, 2024 23:45:04.191 [139942008240784] DEBUG - Captured session 1.
Jun 09, 2024 23:45:04.193 [139942000851768] DEBUG - [GPU] Got device: Alder Lake-N [UHD Graphics], intel@builtin, default true, best true, ID 8086:46d1:0100:2782@0000:00:02.0, DevID [8086:46d1:0100:2782], flags 0x3ae7
Jun 09, 2024 23:45:04.193 [139942000851768] INFO - Preemptively preparing driver imd for GPU Alder Lake-N [UHD Graphics]
Jun 09, 2024 23:45:04.193 [139942000851768] DEBUG - [DriverDL/imd] Skipping download; already exists

User Reviews
You are not allowed to post review.
Posted in .