Do the drivers need to be part of the base image? I thought by leveraging the nvidia container runtime, the host OS mounts them into the container automatically. At least, that’s what the docs for the LSIO plex image seem to indicate.
I’ve gone through these instructions (GitHub - NVIDIA/nvidia-docker: Build and run Docker containers leveraging NVIDIA GPUs) and have HW acceleration enabled for Plex transcodes.
If I go into /dev
in Photostructure and do an ls
now, this is what I see:
drwxr-xr-x 5 root root 420 Jun 16 21:53 .
drwxr-xr-x 1 root root 4.0K Jun 16 21:53 ..
lrwxrwxrwx 1 root root 11 Jun 16 21:53 core -> /proc/kcore
lrwxrwxrwx 1 root root 13 Jun 16 21:53 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Jun 16 21:53 full
drwxrwxrwt 2 root root 40 Jun 16 21:53 mqueue
crw-rw-rw- 1 root root 1, 3 Jun 16 21:53 null
crw-rw-rw- 1 root root 236, 0 Jun 15 21:56 nvidia-uvm
crw-rw-rw- 1 root root 236, 1 Jun 15 21:56 nvidia-uvm-tools
crw-rw-rw- 1 root root 195, 0 Jun 15 21:56 nvidia0
crw-rw-rw- 1 root root 195, 255 Jun 15 21:56 nvidiactl
lrwxrwxrwx 1 root root 8 Jun 16 21:53 ptmx -> pts/ptmx
drwxr-xr-x 2 root root 0 Jun 16 21:53 pts
crw-rw-rw- 1 root root 1, 8 Jun 16 21:53 random
drwxrwxrwt 2 root root 40 Jun 16 21:53 shm
lrwxrwxrwx 1 root root 15 Jun 16 21:53 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jun 16 21:53 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jun 16 21:53 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root 5, 0 Jun 16 21:53 tty
crw-rw-rw- 1 root root 1, 9 Jun 16 21:53 urandom
crw-rw-rw- 1 root root 1, 5 Jun 16 21:53 zero