Jellyfin 安装 Docker 版

摘要:
DeployjellyfinbyDockerRefPre-requirementDockerplease(Docker-Composeisoptional)InstallationDownloadthelatestcontainer'simage:dockerpulljellyfin/jellyfinCreatepersisitentstorageforconfigurationandcachef
Deploy jellyfin by Docker

Ref

Pre-requirement

Docker please
(Docker-Compose is optional)

Installation

  1. Download the latest container's image:
    docker pull jellyfin/jellyfin

  2. Create persisitent storage for configuration and cache file
    docker volumes create jellyfin-config
    docker volumes create jellyfin-cache
    or create two directories on the host and use bind mounts:(Recommend)
    mkdir /path/to/config
    mkdir /path/to/cache

  3. Create container and run !

    docker run -d 
    --name jellyfin 
    --user uid:gid 
    --volume /path/to/config:/config 
    --volume /path/to/cache:/cache 
    --mount type=bind,source=/path/to/media,target=/media 
    --restart=unless-stopped 
    jellyfin/jellyfin
    

    multiple media libraries can be bind mounted if needed:

    --mount type=bind,source=/path/to/media1,target=/media1
    --mount type=bind,source=/path/to/media2,target=/media2,readonly
    ...etc
    
  4. Open browser and type https://IP:8096

Update

  1. Just keep mapping the /config and /cache directory from the old ones on your host machine.

Docker-Compose

  1. Create a file named docker-compose.yml as follow:
     version: "3.8"
     services:
       jellyfin:
         image: jellyfin/jellyfin
         container_name: jellyfin
         user: 1000:1000
         network_mode: "host"
         volumes:
           - /srv/jellyfin/config:/config
           - /srv/jellyfin/cache:/cache
           - /home/sonnet/media:/media
         restart: "unless-stopped"
    
  2. run docker-compose up -d

免责声明:文章转载自《Jellyfin 安装 Docker 版》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Elasticsearch之curl删除suse 下的gcc安装下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

华为鲲鹏服务器安装 k3s+rancher

华为鲲鹏服务器安装 k3s+rancher 华为鲲鹏服务器 华为鲲鹏服务器采用华为自研cpu ARMv8架构,提供 Windows 和多个Linux 系统,作为服务器使用我一直使用Centos系统(不会真有人用Ubuntu做生产环境吧?不会吧?不会吧?)。 本次使用 CentOS 7.6 64bit with ARM 为什么不用 CentOS 8.0 ?...

Nginx 泛域名解析配置

#默认配置 server{ } #泛域名解析 server { listen 80; server_name rs.ruanx.club; #要转发的地址.这里的rs可以使用通配符*代替,可匹配所有. location / { # 泛域名开始配置 proxy_pass http://172.16.0.15:...

docker客户端安装

前置条件 CentOS7.1以上 查看发行版版本号 lsb_release -a 安装docker yum安装 1)使用root权限登录系统 2)更新系统包到最新 yum -y update 3)添加yum仓库 # cat >/etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Doc...

Docker之Dockfile

什么是DockerFile Dockfile是一种被Docker程序解释的脚本,Dockerfile由一条一条的指令组成,每条指令对应Linux下面的一条命令。Docker程序将这些Dockerfile指令翻译真正的Linux命令。Dockerfile有自己书写格式和支持的命令,Docker程序解决这些命令间的依赖关系。Docker程序将读取Dockerf...

docker 的安装与卸载

Docker 理解为应用市场管家 核心简化运维安装软件的发杂环境 Docker daemon( Docker守护进程) Docker daemon是一个运行在宿主机( DOCKER-HOST)的后台进程。可通过 Docker客户端与之通信。 Client( Docker客户端) Docker客户端是 Docker的用户界面,它可以接受用户命令和配置标识,并...

docker-Gitlab、GitLab Runner安装

以下操作均在CentOs下操作 1、Gitlab install ① 启动gitlab docker run --detach --hostname 115.30.149.35 --publish 8888:8888 --publish 24:22 --name gitlab --restart always --volume...