Server Version#: 1.22.2.4282
I updated docker-compose to the latest version and it seems like hardware transcoding is no longer working with the new schema for adding gpus. This is with both the runc and nvidia runtimes.
version: '3.8'
services:
plex:
container_name: plex
image: plexinc/pms-docker:beta
restart: unless-stopped
network_mode: host
environment:
- TZ=$TZ
- PLEX_UID=$PUID
- PLEX_GID=$PGID
volumes:
- /data/.config/plex:/config
- /mnt/media:/media
- /dev/shm:/transcode
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
nvidia-smi works fine in the container
$ docker exec -it plex nvidia-smi
Sun Apr 11 21:48:36 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.67 Driver Version: 460.67 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro P2000 Off | 00000000:01:00.0 Off | N/A |
| 48% 37C P8 7W / 75W | 55MiB / 5057MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
+-----------------------------------------------------------------------------+
However, transcodes are now using software instead of hardware.



