Cannot get NVENC to work for Plex transcoding

I have got CUDA to work in WSL2 and docker. The tests in the guide run fine.

I installed Plex in docker and tried to transcode a video. Checking the logs NVDEC seems to work fine, but NVENC fails with this error:

[0x7f0e95ffb700] ERROR - [Transcode] [FFMPEG] - Cannot load
[0x7f0e95ffb700] ERROR - [Transcode] [FFMPEG] - The minimum required Nvidia driver for nvenc is 418.30 or newer

I used this docker cmd:

docker run -d
-p 32400:32400/tcp
-p 3005:3005/tcp
-p 8324:8324/tcp
-p 32469:32469/tcp
-p 1900:1900/udp
-p 32410:32410/udp
-p 32412:32412/udp
-p 32413:32413/udp
-p 32414:32414/udp
-h docker
-e TZ=Europe/Paris
-e PLEX_CLAIM=claim-xxx
-e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
-v $HOME/plex/config:/config
-v $HOME/plex/transcode:/transcode
-v /mnt/d/Video:/video

I also tested with an earlier Plex version (plexinc/pms-docker:, but got the same error.

I have the 465.42 driver installed in Windows. Is this a bug in Plex/FFMPEG, or is the correct driver version not forwarded to Plex correctly?

if i remember correctly there is a separate container for exposing the NVIDIA card to containers HERE also just looking at your docker build above it doesn’t appear you have exposed the device to the container

docker create
-e VERSION=latest
-e PUID=1000
-e PGID=1000
-e TZ=America/Chicago
-e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
-e PLEX_TOKEN={your_token}
-v /mnt/zfs/storage/apps/plex/config:/config
-v /mnt/zfs/storage/apps/plex/data:/data
-v /mnt/zfs/storage/apps/headphones/music:/music
-v /mnt/zfs/storage/apps/plex/data:/transcode


Did you fix your issue? If so, could you share how you did?