缘由:

疫情期间在家闲来无事,因为电视机无法直接播放4K影片在家萌生通过docker搭建jellyfin的想法,因为jellyfin能在服务器上面对视频硬解码。

下面是安装 好的截图,是不是很爽歪歪。

废话不多说,献上安装步骤。

1 开启root密码

sudo passwd root

2 更新apt

sudo apt-get update

3 安装ssh

查看是否开启了ssh服务是否安装,使用命令:

sudo ps -e |grep ssh

4 安装ssh服务

sudo apt-get install openssh-server

5 查看服务

sudo ps -e | grep ssh

6 防火墙允许

sudo ufw allow 22

7 docker 安装

7.1 安装包允许apt通过HTTPS使用仓库

sudo dpkg --configure -a
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

7.2 添加Docker官方GPG key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

7.3 Docker稳定版仓库

sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”

7.4 更新apt源索引

sudo apt-get update

7.5 安装最新版本Docker CE(社区版)

sudo apt-get install docker-ce

7.6 查看安装Docker的版本

docker --version

版本为 Docker version 19.03.6, build 369ce74a3c

7.7 查看docker是否安装正确

sudo docker run hello-world

/**

如果正常的话将会显示如下的信息

*/

1b930d010525: Pull complete
Digest: sha256:fc6a51919cfeb2e6763f62b6d9e8815acbf7cd2e476ea353743570610737b752
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:

  1. The Docker client contacted the Docker daemon.
  2. The Docker daemon pulled the “hello-world” image from the Docker Hub.
    (amd64)
  3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
  4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

docker 基本命令

启动docker

sudo service docker start

停止docker

sudo service docker stop

重启docker

sudo service docker restart

列出镜像

docker image ls

拉取镜像

docker image pull library/hello-world

删除镜像

docker image rm 镜像id/镜像ID

创建容器

docker run [选项参数] 镜像名 [命令]

停止一个已经在运行的容器

docker container stop 容器名或容器id

启动一个已经停止的容器

docker container start 容器名或容器id

kill掉一个已经在运行的容器

docker container kill 容器名或容器id

删除容器

docker container rm 容器名或容器id

8 Jellyfin媒体服务器docker服务

8.1 更改docker镜像拉取源

修改Docker的配置文件来设置加速地址

vim /etc/docker/daemon.json

{
“registry-mirrors”: [“https://br10hqrl.mirror.aliyuncs.com”]
}

如果没有该文件,新建一个

也可以通过以下命来设置

tee /etc/docker/daemon.json <<-‘EOF’
{
“registry-mirrors”: [“https://br10hqrl.mirror.aliyuncs.com”]
}
EOF

systemctl daemon-reload && systemctl restart docker //让配置生效

8.2 拉取最新的jellyfin服务

docker pull jellyfin/jellyfin:nightly

8.3 允许docker 端口

sudo ufw allow 8096

8.4 创建 jellyfin 容器
docker run -d -p 8096:8096 -v /jellyfin/config:/config -v /media/video:/media jellyfin/jellyfin:nightly

8.5 挂载samba

mount -t cifs -o rw,username=Jellyfin,password=123456,vers=2.0 //192.168.88.210/movie /media/video

8.6 重启docker 容器

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ebf81ff5469b jellyfin/jellyfin:nightly “./jellyfin/jellyfin…” 2 minutes ago Up 2 minutes 0.0.0.0:8096->8096/tcp elegant_ramanujan

docker restart elegant_ramanujan //重启容器

8.7 进入容器

docker exec -it ebf81ff5469b /bin/bash

完毕

在ubuntu 18.04上面用docker搭建家庭影院jellyfin相关推荐

  1. Ubuntu 18.04上使用snort3搭建NIDS(三)| ELK可视化篇

    为最近项目上要用到snort3,但是找了很多博客都是snort2.9.x的安装与配置,所以只能靠着官网文档和自己的反复摸索来学习snort3相关的内容.后面将会把snort3相关的发一个系列的博客,这 ...

  2. Ubuntu 18.04上使用snort3搭建NIDS(二)| 配置篇

    为最近项目上要用到snort3,但是找了很多博客都是snort2.9.x的安装与配置,所以只能靠着官网文档和自己的反复摸索来学习snort3相关的内容.后面将会把snort3相关的发一个系列的博客,这 ...

  3. Ubuntu 18.04 安装 nginx 并搭建一个简单的网站

    目录 一.安装 nginx 二.设置 nginx 服务器模块 三.总结 四.参考资料 尽你所学(采用 html.或 CSS.或 Javascript 等)完成一个静态网页,比如制作一个简单的个人介绍网 ...

  4. ewomail 内部通讯_教你搭建自己的邮件服务器-Ubuntu 18.04下通过Docker使用EwoMail实现...

    除了使用阿里云.腾讯云等需要昂贵付费购买的企业邮箱外,对于偶尔使用的场景来说,自建邮件服务器的需求也经常出现. EwoMail(http://www.ewomail.com)是一款国产的邮件服务器,文 ...

  5. Dell服务器Ubuntu 18.04 双显卡(2080ti)搭建深度学习环境(CUDA 10.1/cuDNN 7.6/Tensorflow 1.14).md...

    # 1 安装显卡驱动 1.1 BIOS禁用Secure Boot 打开服务器电源,按F2进入Bios设置 在System BIOS ->System Security -> Secure ...

  6. Ubuntu 18.04 go语言环境搭建

    来源:微信公众号「编程学习基地」 文章目录 简介 下载go安装包 环境配置 添加环境变量 第一个go语言程序 go入门学习 简介 go语言是一种开源的.语法精简的静态编程语言,它的开源社区比较庞大,应 ...

  7. ubuntu 18.04 搭建python selenium 环境

    ubuntu 18.04 搭建python selenium 环境 1 背景 2 环境 3 搭建 3.1 安装selenium 3.2 安装geckodriver 3.2.1 下载 3.2.2 解压 ...

  8. eclipse theia_如何在Ubuntu 18.04上设置Eclipse Theia Cloud IDE平台[快速入门]

    eclipse theia 介绍 (Introduction) Eclipse Theia is an extensible cloud IDE running on a remote server ...

  9. eclipse theia_如何在Ubuntu 18.04上设置Eclipse Theia Cloud IDE平台

    eclipse theia 介绍 (Introduction) With developer tools moving to the cloud, adoption of cloud IDE (Int ...

最新文章

  1. 牛客网多校训练第一场 B - Symmetric Matrix(dp)
  2. 物联网是怎样把世界联系起来的
  3. 皮一皮:一直情绪不稳的原因终于找到了!
  4. loadrunner 场景设计-负载生成器管理
  5. c++ list 修改_ggplot2 修改图例的一些操作
  6. P3811-[模板]乘法逆元【线性求逆元】
  7. 私钥经过哈希计算可以产生公钥_「区块链基础概念100」:公钥和私钥 | 027
  8. 51nod 1443 路径和树——最短路生成树
  9. The last time...
  10. 【点击模型学习笔记】Modeling contextual factors of click rates_MS_AAAI2007
  11. [转载] 随机游走和随机重启游走_网络动画API的随机游走
  12. 10以内逆向运算题_加减法启蒙系列 | 实战篇二(10以内减法)
  13. selenium+ocr 破解验证码
  14. CSS网页切图经验与要点
  15. 树莓派学习2-连接蓝牙音箱进行语音播放
  16. 科来网络分析系统 6.7 技术交流版序列号
  17. COMSOL(1)寻找最小曲面
  18. 使用curl完成POST数据给飞信接口
  19. 压缩包修改所属目录Linux,LINUX 压缩、解压、打包文件 修改文件所属组
  20. Excel后缀名 .xls和.xlsx 有什么区别?

热门文章

  1. 关于快递100发货单API介绍?
  2. python3多进程多种使用情况下详解
  3. Lifelong GAN: Continual Learning for Conditional Image Generation
  4. vue带缩略图的轮播图插件_带有缩略图轮播的自适应图像库
  5. Matlab图像的读取和存储
  6. PICRUSt2 安装 q2/ conda / APP 和简单代码
  7. 无锡市公安局ETL/BI/数据复制/数据库审计采购要求
  8. 横向思维-六顶思考帽
  9. 安装vue脚手架出现GET httpsregistry.npmmirror.comvue-cli-g response 404 status
  10. 解构语音交互产品--如何设计对话产品