Skip to content

Commit a0fbde5

Browse files
committed
fix nvidia vars, add device vars
1 parent 9109939 commit a0fbde5

6 files changed

Lines changed: 34 additions & 7 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ LABEL maintainer="sparklyballs, thelamer"
99

1010
#Add needed nvidia environment variables for https://github.com/NVIDIA/nvidia-docker
1111
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
12-
ENV NVIDIA_DRIVER_CAPABILITIES="all"
12+
ENV NVIDIA_VISIBLE_DEVICES="all"
1313

1414
# global environment settings
1515
ENV DEBIAN_FRONTEND="noninteractive" \
1616
PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server" \
1717
PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu" \
1818
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \
1919
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
20-
PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
2120
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \
22-
PLEX_MEDIA_SERVER_USER=abc
21+
PLEX_MEDIA_SERVER_USER="abc" \
22+
PLEX_MEDIA_SERVER_INFO_VENDOR="Docker" \
23+
PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (linuxserver.io)"
2324

2425
RUN \
2526
echo "**** install runtime packages ****" && \

Dockerfile.aarch64

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ LABEL maintainer="sparklyballs, thelamer"
1414
ENV DEBIAN_FRONTEND="noninteractive" \
1515
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \
1616
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
17-
PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
1817
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \
19-
PLEX_MEDIA_SERVER_USER=abc
18+
PLEX_MEDIA_SERVER_USER="abc" \
19+
PLEX_MEDIA_SERVER_INFO_VENDOR="Docker" \
20+
PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (linuxserver.io)"
2021

2122
RUN \
2223
echo "**** install runtime packages ****" && \

Dockerfile.armhf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ LABEL maintainer="sparklyballs, thelamer"
1414
ENV DEBIAN_FRONTEND="noninteractive" \
1515
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \
1616
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
17-
PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
1817
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \
19-
PLEX_MEDIA_SERVER_USER=abc
18+
PLEX_MEDIA_SERVER_USER=abc \
19+
PLEX_MEDIA_SERVER_INFO_VENDOR="Docker" \
20+
PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (linuxserver.io)"
2021

2122
RUN \
2223
echo "**** install runtime packages ****" && \

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as bel
145145
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
146146
```
147147

148+
148149
 
149150
## Application Setup
150151

@@ -186,8 +187,28 @@ We automatically add the necessary environment variables that will use all avail
186187
* image version number
187188
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/plex`
188189

190+
## Updating Info
191+
192+
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
193+
194+
Below are the instructions for updating containers:
195+
196+
### Via Docker Run/Create
197+
* Update the image: `docker pull linuxserver/plex`
198+
* Stop the running container: `docker stop plex`
199+
* Delete the container: `docker rm plex`
200+
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
201+
* Start the new container: `docker start plex`
202+
* You can also remove the old dangling images: `docker image prune`
203+
204+
### Via Docker Compose
205+
* Update the image: `docker-compose pull linuxserver/plex`
206+
* Let compose update containers as necessary: `docker-compose up -d`
207+
* You can also remove the old dangling images: `docker image prune`
208+
189209
## Versions
190210

211+
* **09.02.19:** - Fix nvidia variables, add device variables.
191212
* **16.01.19:** - Add pipeline logic, multi arch, and HW transcoding configuration; remove avahi service.
192213
* **07.09.18:** - Rebase to ubuntu bionic, add udev package.
193214
* **09.12.17:** - Fix continuation lines.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ app_setup_block: |
8383
8484
# changelog
8585
changelogs:
86+
- { date: "09.02.19:", desc: "Fix nvidia variables, add device variables." }
8687
- { date: "16.01.19:", desc: "Add pipeline logic, multi arch, and HW transcoding configuration; remove avahi service." }
8788
- { date: "07.09.18:", desc: "Rebase to ubuntu bionic, add udev package." }
8889
- { date: "09.12.17:", desc: "Fix continuation lines." }

root/etc/services.d/plex/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/with-contenv bash
22

33
echo "Starting Plex Media Server."
4+
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)
5+
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=$(uname -r)
46
exec \
57
s6-setuidgid abc /bin/bash -c \
68
'LD_LIBRARY_PATH=/usr/lib/plexmediaserver:/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server'

0 commit comments

Comments
 (0)