Jump to content

Recommended Posts

Posted (edited)

Hi team

I've hit a wall trying to get my docker install of emby working with gpu transcoding. I;ve got all the package working and both cli on server and in container cli all see the card.

nvidia-container-runtime or the legacy nvidia-docker2 are all installed as well.

Connecting to emby...
Shell: /bin/sh, User: root

/ # 
/ # ls /dev/nvidia*
/dev/nvidia-modeset    /dev/nvidia-uvm        /dev/nvidia-uvm-tools  /dev/nvidia0           /dev/nvidiactl

nvidia-smi

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.126.20             Driver Version: 580.126.20     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| 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 RTX A2000               Off |   00000000:01:00.0 Off |                  Off |
| 30%   28C    P8              6W /   70W |       0MiB /   6138MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

nvidia-container-cli info

NVRM version:   580.126.20
CUDA version:   13.0

Device Index:   0
Device Minor:   0
Model:          NVIDIA RTX A2000
Brand:          NvidiaRTX
GPU UUID:       GPU-6ba078af-51d7-13c5-a9c3-4070981db16a
Bus Location:   00000000:01:00.0
Architecture:   8.6

I think it has something to do with the docker compose.

services:
  emby:
    image: emby/embyserver:latest
    container_name: emby
    runtime: nvidia # Expose NVIDIA GPUs
    hostname: emby
    environment:
      PUID: "1000"
      PGID: "1000"
      GIDLIST: "993"
      TZ: "xxxx"
      NVIDIA_VISIBLE_DEVICES: "all"
      NVIDIA_DRIVER_CAPABILITIES: "compute,video,utility"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.village-https.entrypoints=websecure"
      - "traefik.http.routers.village-https.rule=Host(`xxxx`)"
      - "traefik.http.routers.village-https.tls=true"
      - "traefik.http.routers.village-https.tls.certresolver=cloudflare"
      - "traefik.http.services.village.loadbalancer.server.port=8096"
      - "traefik.http.services.village.loadbalancer.passhostheader=true"
    volumes:
      - ./config:/config
      - /mnt/synology:/san-backups
      - /mnt/VillageFS:/VillageFS
      - /mnt/VillageFS2:/VillageFS2
    ports:
      - "8096:8096"
      - "8920:8920"
      - "1900:1900/tcp"
      - "1900:1900/udp"
      - "7359:7359"
   # devices:
   #   - /dev/dri:/dev/dri # VAAPI/NVDEC/NVENC render nodes
    restart: unless-stopped
    networks:
      - ggNet
networks:
  ggNet:
    external: true

 

Any help would be amazing thanks as its doing my head in... i know it will be something to do with the GID

Edited by ryzilla
Posted

image.png.3d90648a437629d88a6221bff7e1fca5.png

This works but not with nvidia gpu and dont show in here.

 

image.png.c29432a8b2f08375dd4cf746e34b7190.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...