2024-06-18, 06:17 PM
(This post was last modified: 2024-06-18, 06:17 PM by TheDreadPirate.)
You should NOT need to install inside the container. The way it works in plain docker is that you pass the device(s) in to the container and then configure docker to pass in the Nvidia runtimes.
I just don't know how to do the same with QNAP.
Code:
version: '3'
services:
jellyfin:
image: jellyfin/jellyfin
user: 1000:1000
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
network_mode: 'host'
volumes:
- /path/to/config:/config
- /path/to/cache:/cache
- /path/to/media:/media
I just don't know how to do the same with QNAP.