Jump to content
ShadowKindjal

Nvidia Runtime Docker Compose

Recommended Posts

ShadowKindjal

Would anyone be able to help me? I have a docker install for Emby currently working but I would like to use Docker Compose to further simplify the process. I noticed that the Nvidia runtime is not supported within the docker-compose.yml file but does anyone know a way to maybe incorporate the runtime with a Dockerfile? Any help would be appreciated. 

Share this post


Link to post
Share on other sites
Luke

Hi, how far have you gotten?

Share this post


Link to post
Share on other sites
ShadowKindjal
Posted (edited)

This snippet is my current run command for my server that is currently working. 

docker run -d --name emby --volume /opt/emby/config:/config --volume /opt/emby/SSL:/SSL --volume /mnt/data/Backup/Emby:/backup --volume /mnt/data/Movies:/mnt/data/Movies --volume /mnt/data/Shows:/mnt/data/TV\ Shows --volume /mnt/data/Anime:/mnt/data/Anime --device /dev/dri:/dev/dri --runtime=nvidia --publish 8096:8096 --publish 8920:8920 --env GIDLIST=44,109 --restart unless-stopped emby/embyserver:latest

This snippet is the docker-compose config that I'm attempting to set up. I know that docker-compose doesn't support the NVIDIA runtime but I was wondering if there's a way to get it working with a Dockerfile. This compose script works as long as I don't specify the "--runtime=nvidia"

version: "2.1"
services:
  emby:
    image: emby/embyserver:latest
    container_name: emby
    environment:
      - GIDLIST=44,109
    volumes:
      - /opt/emby/config:/config
      - /opt/emby/SSL:/SSL
      - /mnt/data/Backup/Emby:/backup
      - /mnt/data/Movies:/mnt/data/Movies
      - /mnt/data/Shows:/mnt/data/TV Shows
	  - /mnt/data/Anime:/mnt/data/Anime
    ports:
      - 8096:8096
      - 8920:8920
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped

 


 

Edited by ShadowKindjal

Share this post


Link to post
Share on other sites
mastrmind11

nope.  i dont use compose files.  You sure its vanilla /dev/dri?  

Share this post


Link to post
Share on other sites

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...