Sign in

plex

1.43.5.11079-b3b13e506-ls11

Plex organizes video, music and photos from personal media libraries and streams them to smart TVs, streaming boxes and mobile devices. This container is packaged as a standalone Plex Media Server. Straightforward design and bulk actions mean getting things done faster.

docker pull ghcr.io/linuxserver-playground/plex:latest
1.43.5.11079-b3b13e506-ls11 · amd64 · CI screenshot · test report

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
Set whether to update plex or not - see Application Setup section.
Plex library location. This can grow very large, 50gb+ is likely for a large collection.
Media goes here. Add as many as needed e.g. /movies, /tv, etc.
Media goes here. Add as many as needed e.g. /movies, /tv, etc.
  • network_mode: host Host networking: the container uses the host's network directly, so the port mappings are left out.
Optional settings3

Tick what you need; it is added to every output with its value.

Mods

3 for plex, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  plex:
    image: ghcr.io/linuxserver-playground/plex:latest
    container_name: plex
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - VERSION=docker
    volumes:
      - /path/to/plex/library:/config
      - /path/to/tvseries:/tv
      - /path/to/movies:/movies
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.
  • Host networking: the container uses the host's network directly, so the port mappings are left out.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch master · stable1.43.5.11079-b3b13e506-ls11amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/plex:1.43.5.11079-b3b13e506-ls11

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-ubuntu:resolute
Upstream version
1.43.5.11079-b3b13e506
amd64 compressed
170 MB · 11 layers
arm64 compressed
163 MB · 11 layers
amd64 packages
162 · Ubuntu 26.04.1 LTS
arm64 packages
162 · Ubuntu 26.04.1 LTS
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

plex on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
1.43.5.11079-b3b13e506
? unknown––

Application setup#

Webui can be found at <your-ip>:32400/web

Note

Updates

If there is no value set for the VERSION variable, then no updates will take place.

Note

New users

For new users, no updates will take place on the first run of the container as there is no preferences file to read your token from, to update restart the Docker container after logging in through the webui.

Valid settings for VERSION are:-

Note

Plexpass

YOU CANNOT UPDATE TO A PLEXPASS ONLY (BETA) VERSION IF YOU ARE NOT LOGGED IN WITH A PLEXPASS ACCOUNT.

  • docker: Let Docker handle the Plex Version, we keep our Dockerhub Endpoint up to date with the latest public builds. This is the same as leaving this setting out of your create command.
  • latest: will update plex to the latest version available that you are entitled to.
  • public: will update plexpass users to the latest public version, useful for plexpass users that don’t want to be on the bleeding edge but still want the latest public updates.
  • <specific-version>: will select a specific version (eg 0.9.12.4.1192-9a47d21) of plex to install, note you cannot use this to access plexpass versions if you do not have plexpass.

Hardware Acceleration

Many desktop applications need access to a GPU to function properly and even some Desktop Environments have compositor effects that will not function without a GPU. However this is not a hard requirement and all base images will function without a video device mounted into the container.

Intel/ATI/AMD

To leverage hardware acceleration you will need to mount /dev/dri video device inside of the container.

--device=/dev/dri:/dev/dri

We will automatically ensure the abc user inside of the container has the proper permissions to access this device.

Nvidia

Hardware acceleration users for Nvidia will need to install the container runtime provided by Nvidia on their host, instructions can be found here: https://github.com/NVIDIA/nvidia-container-toolkit

We automatically add the necessary environment variable that will utilise all the features available on a GPU on the host. Once nvidia-container-toolkit is installed on your host you will need to re/create the docker container with the nvidia container runtime --runtime=nvidia and add an environment variable -e NVIDIA_VISIBLE_DEVICES=all (can also be set to a specific gpu’s UUID, this can be discovered by running nvidia-smi --query-gpu=gpu_name,gpu_uuid --format=csv ). NVIDIA automatically mounts the GPU and drivers from your host into the container.

Arm Devices

Best effort is made to install tools to allow mounting in /dev/dri on Arm devices. In most cases if /dev/dri exists on the host it should just work. If running a Raspberry Pi 4 be sure to enable dtoverlay=vc4-fkms-v3d in your usercfg.txt.

Parameters#

Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
VERSION=dockerSet whether to update plex or not - see Application Setup section.required
PLEX_CLAIM=Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes.optional
Volumes#
PathFunctionRequired
/configPlex library location. This can grow very large, 50gb+ is likely for a large collection.required
/tvMedia goes here. Add as many as needed e.g. /movies, /tv, etc.required
/moviesMedia goes here. Add as many as needed e.g. /movies, /tv, etc.required
Other settings#
SettingFunctionRequired
network_mode: hostRuns on the host network.required

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Caveats

  • Runtime update of Plex (and thus Plexpass builds) is not supported.
  • Transcode directory must be mounted to a host path or tmpfs.

Non-Root Operation#

This image can be run with a non-root user. For details please read the docs.

Caveats

  • Runtime update of Plex (and thus Plexpass builds) is not supported.
  • Transcode directory must be mounted to a host path or tmpfs.

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

Optional Parameters#

If you want to run the container in bridge network mode (instead of the recommended host network mode) you will need to specify ports. The official documentation for ports lists 32400 as the only required port. The rest of the ports are optionally used for specific purposes listed in the documentation. If you have not already claimed your server (first time setup) you need to set PLEX_CLAIM to claim a server set up with bridge networking.

  -p 32400:32400 \
  -p 1900:1900/udp \
  -p 5353:5353/udp \
  -p 8324:8324 \
  -p 32410:32410/udp \
  -p 32412:32412/udp \
  -p 32413:32413/udp \
  -p 32414:32414/udp \
  -p 32469:32469

The application accepts a series of environment variables to further customize itself on boot:

Parameter Function
--device=/dev/dri:/dev/dri Add this option to your run command if you plan on using Quicksync hardware acceleration - see Application Setup section.
--device=/dev/dvb:/dev/dvb Add this option to your run command if you plan on using dvb devices.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull plex
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d plex
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/plex:latest
  • Stop the running container:

    docker stop plex
  • Delete the container:

    docker rm plex
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-plex.git
cd docker-plex
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/plex:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 7 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
1.43.5.11079-b3b13e506-ls11master · 292dfe40weekly package checkbasesuccess170 MB amd64163 MB arm64
1.43.5.11079-b3b13e506-ls10master · ec1efe41weekly package checkbasesuccess178 MB amd64171 MB arm64
1.43.5.11079-b3b13e506-ls9master · 735e3804weekly package checkbasesuccess172 MB amd64165 MB arm64
1.43.5.11079-b3b13e506-ls8master · 86311ab6weekly package checkbasesuccess170 MB amd64163 MB arm64
1.43.5.11079-b3b13e506-ls7master · c6750a9cweekly package checkbasesuccess170 MB amd64163 MB arm64
Older releases7Release, run record and run on GitHub
Older releases of plex, without a page on this site
TagBuiltLinks
1.43.5.11079-b3b13e506-ls6masterRelease 1.43.5.11079-b3b13e506-ls6 on GitHub (opens in a new tab)run.json of 1.43.5.11079-b3b13e506-ls6Run that built 1.43.5.11079-b3b13e506-ls6, on GitHub (opens in a new tab)
1.43.5.11079-b3b13e506-ls5masterRelease 1.43.5.11079-b3b13e506-ls5 on GitHub (opens in a new tab)run.json of 1.43.5.11079-b3b13e506-ls5Run that built 1.43.5.11079-b3b13e506-ls5, on GitHub (opens in a new tab)
1.43.5.11079-b3b13e506-ls4masterRelease 1.43.5.11079-b3b13e506-ls4 on GitHub (opens in a new tab)run.json of 1.43.5.11079-b3b13e506-ls4Run that built 1.43.5.11079-b3b13e506-ls4, on GitHub (opens in a new tab)
1.43.5.11079-b3b13e506-ls3masterRelease 1.43.5.11079-b3b13e506-ls3 on GitHub (opens in a new tab)run.json of 1.43.5.11079-b3b13e506-ls3Run that built 1.43.5.11079-b3b13e506-ls3, on GitHub (opens in a new tab)
1.43.5.11029-6bf8af3f0-ls3masterRelease 1.43.5.11029-6bf8af3f0-ls3 on GitHub (opens in a new tab)run.json of 1.43.5.11029-6bf8af3f0-ls3Run that built 1.43.5.11029-6bf8af3f0-ls3, on GitHub (opens in a new tab)
1.43.5.11029-6bf8af3f0-ls2masterRelease 1.43.5.11029-6bf8af3f0-ls2 on GitHub (opens in a new tab)run.json of 1.43.5.11029-6bf8af3f0-ls2Run that built 1.43.5.11029-6bf8af3f0-ls2, on GitHub (opens in a new tab)
1.43.5.11029-6bf8af3f0-ls1masterRelease 1.43.5.11029-6bf8af3f0-ls1 on GitHub (opens in a new tab)run.json of 1.43.5.11029-6bf8af3f0-ls1Run that built 1.43.5.11029-6bf8af3f0-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for plex
  • Absolute Series Scanner and Hama

    This mod adds Absolute Series Scanner and Hama to Plex, to be downloaded/updated during container start.

    ghcr.io/linuxserver-playground/mods:plex-absolute-hama
  • Audnexus.bundle

    This mod adds djdembeck/Audnexus.bundle.

    ghcr.io/linuxserver-playground/mods:plex-audnexus
  • Remove Codecs

    This mod removes all codec subfolders from Plex's /config/Library/Application Support/Plex Media Server/Codecs/ folder, preserves the .device-id, and allows Plex to repopulate the codecs folder while starting up.

    ghcr.io/linuxserver-playground/mods:plex-remove-codecs

Plus 13 other universal mods that work with every image.

Reverse proxy#

plex listens on http://plex:32400.

What you named the plex container; SWAG resolves it on the shared network.

Uncomments the matching include lines; API locations stay open so client apps keep working.

  • Save as /config/nginx/proxy-confs/plex.subdomain.conf in SWAG (drop the .sample) and restart SWAG.
  • Your DNS needs a record for plex.yourdomain.com (a CNAME to the domain, or a wildcard), and SWAG's SUBDOMAINS must cover it.
  • The plex container and SWAG must share a user-defined Docker network so the name resolves.
## Version 2026/11/26
# make sure that your plex container is named plex
# make sure that your dns has a cname set for plex

server {
    listen 443 ssl;
#    listen 443 quic;
    listen [::]:443 ssl;
#    listen [::]:443 quic;

    server_name plex.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth (requires ldap-location.conf in the location block)
    #include /config/nginx/ldap-server.conf;

    # enable for Authelia (requires authelia-location.conf in the location block)
    #include /config/nginx/authelia-server.conf;

    # enable for Authentik (requires authentik-location.conf in the location block)
    #include /config/nginx/authentik-server.conf;

    # enable for Tinyauth (requires tinyauth-location.conf in the location block)
    #include /config/nginx/tinyauth-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable for ldap auth (requires ldap-server.conf in the server block)
        #include /config/nginx/ldap-location.conf;

        # enable for Authelia (requires authelia-server.conf in the server block)
        #include /config/nginx/authelia-location.conf;

        # enable for Authentik (requires authentik-server.conf in the server block)
        #include /config/nginx/authentik-location.conf;

        # enable for Tinyauth (requires tinyauth-server.conf in the server block)
        #include /config/nginx/tinyauth-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app plex;
        set $upstream_port 32400;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Default sample.

Source: linuxserver-playground.github.io/hub/api/v1/catalog/plex/proxy.json

Changelog#

  1. Rebase to Ubuntu Resolute.

  2. Allow TMPDIR to be changed to better support read-only containers

  3. Fix initial claim setup on non-root containers

  4. Add Nvidia capability needed for h265

  5. Rebase to Ubuntu Noble.

  6. Use universal hardware acceleration blurb

  7. Set ownership on TranscoderTempDirectory when it's been saved in Preferences.

  8. Install unrar from linuxserver repo (opens in a new tab).

41 earlier entries
  1. Deprecate armhf. As announced here (opens in a new tab)
  2. Rebase to jammy. Update to s6v3. Remove opencl packages (bundled with plex).
  3. Pin all opencl related driver packages.
  4. Pin opencl version.
  5. Increase verbosity of video device permissions fix, attempt to fix missing group rw.
  6. Install Intel drivers from the official repo.
  7. Deprecate UMASK_SET in favor of UMASK in baseimage, see above for more information.
  8. Add latest Intel Compute packages from github repo for opencl support on latest gen igpu.
  9. Add Bionic branch make Focal default.
  10. Update exposed ports and example docs for bridge mode.
  11. Remove udev hack (no longer needed), suppress uuid error in log during first start.
  12. Add variable for setting PLEX_CLAIM. Remove /transcode volume mapping as it is now set via plex gui and defaults to a location under /config.
  13. Add variable for setting UMASK.
  14. Fix permissions for tuner (/dev/dvb) devices.
  15. Bugfix do not allow Root group for Intel QuickSync ownership rules.
  16. Switching to new Base images, shift to arm32v7 tag.
  17. Fix update logic for VERSION=public.
  18. Switch to new api endpoints, enable beta (plex pass) updates for armhf and aarch64.
  19. Clean up plex pid after unclean stop.
  20. Fix nvidia variables, add device variables.
  21. Add pipeline logic, multi arch, and HW transcoding configuration; remove avahi service.
  22. Rebase to ubuntu bionic, add udev package.
  23. Fix continuation lines.
  24. Add inspect commands to README, move to jenkins build and push.
  25. Add unrar package as per requests, for subzero plugin.
  26. Use Plex environment variables from pms docker, change abc home folder to /app to alleviate usermod chowning library
  27. Use case insensitive version variable matching rather than export and make lowercase.
  28. Allow use of uppercase version variable
  29. Add TZ info to README.
  30. Add layer badges to README.
  31. Add badges to README.
  32. Rebased to xenial and s6 overlay
  33. removed /transcode volume support (upstream Plex change) and modified PlexPass download method to prevent unauthorised usage of paid PMS
  34. added optional support for volume transcoding (/transcode), and various typo fixes.
  35. Plex updated their download servers from http to https
  36. Changed to run chmod only once
  37. Removed plexpass from routine, and now uses VERSION as a combination fix.
  38. Moved autoupdate to be hosted by linuxserver.io and implemented bugfix thanks to ljm42.
  39. Now with ability to pick static version number.
  40. Now with autoupdates. (Hosted by fanart.tv)
  41. Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this.

Support#

Questions about running plex? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it plex /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f plex
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' plex
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/plex:latest

Community project

Improve plex

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the plex image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the plex image, test it and draft the PR.
  • Make a mod for plex that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Writing

Posts about plex

Related

Browse all

emby

4.10.2.0-ls8

Emby organizes video, music, live TV, and photos from personal media libraries and streams them to smart TVs, streaming boxes and mobile devices. This container is packaged as a standalone emby Media Server.

0 GitHub starsubuntuarm64

jellyfin

12.4ubu2604-ls8

Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media. It is an alternative to the proprietary Emby and Plex, to provide media from a dedicated server to end-user devices via multiple apps. Jellyfin is descended from Emby's 3.5.2 release and ported to the .NET Core framework to enable full cross-platform support. There are no strings attached, no premium licenses or features, and no hidden agendas: just a team who want to build something better and work together to achieve it.

0 GitHub starsubuntuarm64

Airsonic-advanced is a free, web-based media streamer, providing ubiquitious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.

0 GitHub starsalpinearm64

audiosilo

v2.6.0-ls12

AudioSilo is a self-hosted audiobook server. Point it at your audiobook folders and listen from the built-in web player or the AudioSilo apps for iOS and Android, with listening progress synced across devices.

0 GitHub starsalpinearm64