Plex in docker desktop HW transcode not working

I am trying to get HW transcode working. I am trying to follow Docker

I have docker desktop for windows installed on windows 10. I have an 19-13900 CPU with GPU

I can get a docker container created with
docker run -d --device /dev/dri:/dev/dri --name plex -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 -e TZ=“US/Pacific” -e PLEX_CLAIM=“claim-myuniqueID” -e ADVERTISE_IP=“http://192.168.3.12:32400/” -h WIN10-PlexServer -v C:\plex_database:/config -v C:\temp:/transcode -v E::/media0 -v H::/media1 -it plexinc/pms-docker

Everything installs fine and plexmediaserver loads up fine. If I open a shell inside the container I can see the video hardware.

ls -l /dev/dri

total 0
crw------- 1 root root 226, 0 Apr 15 21:49 card0
crw------- 1 root root 226, 128 Apr 15 21:49 renderD128

Stumped at this point. I installed the linux drivers for the video card. Still can not get plex to HW transcode. It always wants to SW transcode. I am pointing to a 4k dolby vision video. I was able to transcode this with HW under linux. But stuck with the windows->docker->linux

I can see it try and load nvidia drivers but seems to skip over testing for intel hardwar. I am hoping there is some step I am missing to tell plex to use the i915 video hardware for transcode.

Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing h264_nvenc (encoder)
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvenc
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for h264_nvenc
Apr 15, 2023 22:11:58.025 [0x7f867386fb38] DEBUG - [Req#ca8] Library item 6049 ‘Avatar: The Way of Water’ got skipped for account ID 1.
Apr 15, 2023 22:11:58.026 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] User is madeup (ID: 1)
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] Device is iOS (iPhone).
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] Profile is iOS
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] Updated play state for /library/metadata/6049.
Apr 15, 2023 22:11:58.027 [0x7f867386fb38] DEBUG - [Req#ca8] Statistics: (278CDD66-F490-4580-BA9A-E817128F12FF) Reporting active playback in state 3 of type 1 (scrobble: 0) for account 1
Apr 15, 2023 22:11:58.027 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API vaapi
Apr 15, 2023 22:11:58.027 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Apr 15, 2023 22:11:58.027 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.028 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Apr 15, 2023 22:11:58.029 [0x7f86751f8b38] DEBUG - Completed: [172.17.0.1:50518] 200 GET /:/timeline?bufferedTime=0&col=49&context=source%3Acontent.library&continuing=1&duration=11558088&key=%2Flibrary%2Fmetadata%2F6049&location=lan&playQueueItemID=15&playbackTime=10805&ratingKey=6049&row=49&state=stopped&time=0 (18 live) #ca8 TLS GZIP 14ms 777 bytes (pipelined: 5)
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvdec
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Selected protocol hls; container: mp4
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: analyzing media item 15680
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): Direct Play is disabled
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): media must be transcoded in order to use the hls protocol
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): no direct play video profile exists for http/mkv/hevc
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): no direct play video profile exists for http/mkv/hevc/aac
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): Direct Streaming is disabled, so video stream will be transcoded
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): no remuxable profile found, so video stream will be transcoded
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing h264_nvenc (encoder)
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvenc
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for h264_nvenc
Apr 15, 2023 22:11:58.032 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Apr 15, 2023 22:11:58.032 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API vaapi
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Apr 15, 2023 22:11:58.034 [0x7f86729f3b38] DEBUG - Request: [172.17.0.1:50518 (Subnet)] GET /hubs/continueWatching/items?contentDirectoryID=1&includeExternalMedia=1&includeMeta=1 (18 live) #cbf TLS Page 0-49 GZIP Signed-in Token (madeup) (iPhone)
Apr 15, 2023 22:11:58.034 [0x7f86729f3b38] DEBUG - [Req#cbf] HubCache: Retrieving ‘1/continueWatching/1/hubs/continueWatching/items/enexternal-media,hub-style-list/contentDirectoryID=1&includeExternalMedia=1&includeMeta=1’ from the cache.
Apr 15, 2023 22:11:58.034 [0x7f86729f3b38] DEBUG - Setting container serialization range to [0, 49] (total=-1)
Apr 15, 2023 22:11:58.035 [0x7f86753fbb38] DEBUG - Completed: [172.17.0.1:50518] 200 GET /hubs/continueWatching/items?contentDirectoryID=1&includeExternalMedia=1&includeMeta=1 (18 live) #cbf TLS GZIP Page 0-49 0ms 596 bytes (pipelined: 6)
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvdec
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): Audio Direct Streaming is disabled, so video’s audio stream will be transcoded
Apr 15, 2023 22:11:58.035 [0x7f86725edb38] DEBUG - Request: [172.17.0.1:50536 (Subnet)] GET /library/metadata/6049?asyncAugmentMetadata=1&checkFiles=1&includeChapters=1&includeConcerts=1&includeExternalMedia=1&includeExternalMetadata=1&includeExtras=1&includeGeolocation=0&includeMarkers=1&includeMeta=1&includeOnDeck=1&includePlexLinks=1&includePopularLeaves=1&includePreferences=0&includeRelated=0&includeRelatedCount=15&includeReviews=1 (18 live) #cb0 TLS GZIP Signed-in Token (madeup) (iPhone)
Apr 15, 2023 22:11:58.037 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Cannot direct stream audio stream due to profile or setting limitations
Apr 15, 2023 22:11:58.037 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): selected media 0 / 15680
Apr 15, 2023 22:11:58.039 [0x7f86725edb38] DEBUG - [Req#cb0] It took 10.000000 ms to retrieve 180 items.
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Killing job.
Apr 15, 2023 22:11:58.040 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Streaming Resource: Session 0x7f8674719648:278CDD66-F490-4580-BA9A-E817128F12FF changed transcode slot usage to used. Used slots is now 1
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Signalling job ID 4497 with 9
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Job was already killed, not killing again.
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Stopping transcode session 6EC4D7BE-EFDC-4F05-8055-E356B2BE2DD8