From 07fe7574bf2f535e640ba1114fc0c0a351e7eef2 Mon Sep 17 00:00:00 2001 From: <> Date: Tue, 3 Dec 2024 13:07:07 +0000 Subject: [PATCH] Deployed aed7faec6 with MkDocs version: 1.6.1 --- images/docker-jellyfin/index.html | 6 +++--- search/search_index.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/images/docker-jellyfin/index.html b/images/docker-jellyfin/index.html index fb705917cc..6d3bc2eb4c 100644 --- a/images/docker-jellyfin/index.html +++ b/images/docker-jellyfin/index.html @@ -5,7 +5,7 @@ --device=/dev/video11:/dev/video11 --device=/dev/video12:/dev/video12
Many desktop applications need access to a GPU to function properly and even some Desktop Environments have compositor effects that will not function without a GPU. However this is not a hard requirement and all base images will function without a video device mounted into the container.
To leverage hardware acceleration you will need to mount /dev/dri video device inside of the container.
We will automatically ensure the abc user inside of the container has the proper permissions to access this device.
Hardware acceleration users for Nvidia will need to install the container runtime provided by Nvidia on their host, instructions can be found here: https://github.com/NVIDIA/nvidia-container-toolkit
We automatically add the necessary environment variable that will utilise all the features available on a GPU on the host. Once nvidia-container-toolkit is installed on your host you will need to re/create the docker container with the nvidia container runtime --runtime=nvidia
and add an environment variable -e NVIDIA_VISIBLE_DEVICES=all
(can also be set to a specific gpu's UUID, this can be discovered by running nvidia-smi --query-gpu=gpu_name,gpu_uuid --format=csv
). NVIDIA automatically mounts the GPU and drivers from your host into the container.
Best effort is made to install tools to allow mounting in /dev/dri on Arm devices. In most cases if /dev/dri exists on the host it should just work. If running a Raspberry Pi 4 be sure to enable dtoverlay=vc4-fkms-v3d
in your usercfg.txt.
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
We will automatically ensure the abc user inside of the container has the proper permissions to access this device.
Hardware acceleration users for Nvidia will need to install the container runtime provided by Nvidia on their host, instructions can be found here: https://github.com/NVIDIA/nvidia-container-toolkit
We automatically add the necessary environment variable that will utilise all the features available on a GPU on the host. Once nvidia-container-toolkit is installed on your host you will need to re/create the docker container with the nvidia container runtime --runtime=nvidia
and add an environment variable -e NVIDIA_VISIBLE_DEVICES=all
(can also be set to a specific gpu's UUID, this can be discovered by running nvidia-smi --query-gpu=gpu_name,gpu_uuid --format=csv
). NVIDIA automatically mounts the GPU and drivers from your host into the container.
Best effort is made to install tools to allow mounting in /dev/dri on Arm devices. In most cases if /dev/dri exists on the host it should just work. If running a Raspberry Pi 4 be sure to enable dtoverlay=vc4-fkms-v3d
in your usercfg.txt.
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
Info
Unless a parameter is flaged as 'optional', it is mandatory and a value must be provided.
---
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
@@ -40,7 +40,7 @@
-v /path/to/movies:/data/movies \
--restart unless-stopped \
lscr.io/linuxserver/jellyfin:latest
-
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal>
respectively. For example, -p 8080:80
would expose port 80
from inside the container to be accessible from the host's IP on port 8080
outside the container.
-p
)¶Parameter | Function |
---|---|
8096 | Http webUI. |
8920 | Optional - Https webUI (you need to set up your own certificate). |
7359/udp | Optional - Allows clients to discover Jellyfin on the local network. |
1900/udp | Optional - Service discovery used by DNLA and clients. |
-e
)¶Env | Function |
---|---|
PUID=1000 | for UserID - see below for explanation |
PGID=1000 | for GroupID - see below for explanation |
TZ=Etc/UTC | specify a timezone to use, see this list. |
JELLYFIN_PublishedServerUrl=http://192.168.0.5 | Set the autodiscovery response domain or IP address, include http(s)://. |
-v
)¶Volume | Function |
---|---|
/config | Jellyfin data storage location. This can grow very large, 50gb+ is likely for a large collection. |
/data/tvshows | Media goes here. Add as many as needed e.g. /data/movies , /data/tv , etc. |
/data/movies | Media goes here. Add as many as needed e.g. /data/movies , /data/tv , etc. |
Parameter | Function |
---|---|
You can set any environment variable from a file by using a special prepend FILE__
.
As an example:
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal>
respectively. For example, -p 8080:80
would expose port 80
from inside the container to be accessible from the host's IP on port 8080
outside the container.
-p
)¶Parameter | Function |
---|---|
8096:8096 | Http webUI. |
8920:8920 | Optional - Https webUI (you need to set up your own certificate). |
7359:7359/udp | Optional - Allows clients to discover Jellyfin on the local network. |
1900:1900/udp | Optional - Service discovery used by DNLA and clients. |
-e
)¶Env | Function |
---|---|
PUID=1000 | for UserID - see below for explanation |
PGID=1000 | for GroupID - see below for explanation |
TZ=Etc/UTC | specify a timezone to use, see this list. |
JELLYFIN_PublishedServerUrl=http://192.168.0.5 | Set the autodiscovery response domain or IP address, include http(s)://. |
-v
)¶Volume | Function |
---|---|
/config | Jellyfin data storage location. This can grow very large, 50gb+ is likely for a large collection. |
/data/tvshows | Media goes here. Add as many as needed e.g. /data/movies , /data/tv , etc. |
/data/movies | Media goes here. Add as many as needed e.g. /data/movies , /data/tv , etc. |
Parameter | Function |
---|---|
You can set any environment variable from a file by using a special prepend FILE__
.
As an example:
Will set the environment variable MYVAR
based on the contents of the /run/secrets/mysecretvariable
file.
For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022
setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.
The official documentation for ports has additional ports that can provide auto discovery.
Service Discovery (1900/udp
) - Since client auto-discover would break if this option were configurable, you cannot change this in the settings at this time. DLNA also uses this port and is required to be in the local subnet.
Client Discovery (7359/udp
) - Allows clients to discover Jellyfin on the local network. A broadcast message to this port with "Who is Jellyfin Server?" will get a JSON response that includes the server address, ID, and name.
The official documentation for environmentals has additional environmentals that can provide additional configurability such as migrating to the native Jellyfin image.
When using volumes (-v
flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID
and group PGID
.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000
and PGID=1000
, to find yours use id your_user
as below:
The ARM variants can be built on x86_64 hardware and vice versa using lscr.io/linuxserver/qemu-static
Once registered you can define the dockerfile to use with -f Dockerfile.aarch64
.
bionic
tag.UMASK_SET
in favor of UMASK in baseimage, see above for more information./dev/vc-mem
with /dev/vcsm
as the former was not sufficient for raspbian./config
).