2023-10-20, 06:11 PM
Yes, the GPU is inside the container.
Here's the full docker-compose file:
and checking in the container:
I can also confirm that watching certain content on Jellyfin causes the GPU to kick in.
In Settings, I have enabled encoding and decoding for all available formats.
Here's the full docker-compose file:
Code:
version: "2.1"
services:
jellyfin_ddns4:
image: sjmayotte/route53-dynamic-dns:latest
container_name: jellyfin_ddns4
env_file:
- ./4.env
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://10.0.0.1:12201"
tag: "jellyfin_ddns4"
jellyfin_ddns6:
image: sjmayotte/route53-dynamic-dns:latest
container_name: jellyfin_ddns6
env_file:
- ./6.env
network_mode: host
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://10.0.0.1:12201"
tag: "jellyfin_ddns6"
jellyfin:
image: linuxserver/jellyfin:latest
container_name: jellyfin
runtime: nvidia
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- ./config:/config
- /srv/media/music:/music
- /srv/media/tv:/tv
- /srv/media/movies:/movies
network_mode: host
depends_on:
- jellyfin_ddns4
- jellyfin_ddns6
restart: unless-stopped
nginx:
container_name: nginx_jellyfin
image: nginx:latest
volumes:
- ./nginx/log:/var/log/nginx
- ./nginx/keys:/config/keys
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 42069:80
depends_on:
- jellyfin
restart: unless-stopped
and checking in the container:
Code:
:: /srv/jellyfin » docker exec -it jellyfin nvidia-smi
Fri Oct 20 11:01:16 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.199.02 Driver Version: 470.199.02 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| 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 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| 0% 41C P8 8W / 130W | 1MiB / 5944MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
I can also confirm that watching certain content on Jellyfin causes the GPU to kick in.
In Settings, I have enabled encoding and decoding for all available formats.