So by setting LD_LIBRARY_PATH to /usr/local/nvidia/lib, that library folder was taking precedence over the one included with the Plex Media Server release, when it should actually only be used if a given library, such as CUDA is not included in the release.
This can be resolved by including the Plex Media Server release library folder in LD_LIBRARY_PATH.
version: '3'
services:
plex:
image: linuxserver/plex
container_name: plex
network_mode: host
restart: always
devices:
- /dev/nvidia0
- /dev/nvidiactl
- /dev/nvidia-uvm
volumes:
- ./data:/config
- /share/Multimedia:/data
- /dev/shm:/transcode
- /opt/NVIDIA_GPU_DRV/usr:/usr/local/nvidia:ro
environment:
LD_LIBRARY_PATH: /usr/lib/plexmediaserver/lib:/usr/local/nvidia/lib
PUID: <uid>
PGID: <gid>
TZ: <timezone>
VERSION: latest
The other option can be to append /usr/local/nvidia/lib at the end of /usr/lib/plexmediaserver/etc/ld-musl-x86_64.path inside the container. Doing so remove the need to define LD_LIBRARY_PATH.