nyanmisaka大神
version: "2.1"
services:
jellyfin:
image: nyanmisaka/jellyfin:latest
container_name: jellyfin
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
volumes:
- /datazfs/datashare/Appdata/config:/config #冒号前面是主机路径,就是我们实际的数据地址,冒号后面是容器路径,我的理解,算是个虚拟的,它实际映射出来的地址就是数据真是地址
- /datazfs/datashare/media/movies:/movies #电视剧数据存放路径
- /datazfs/datashare/media/tvseries:/tvseries #电视剧数据存放路径
- /datazfs/datashare/media/music:/music
ports:
- 8096:8096 #端口设置
devices: #显卡直通
- /dev/dri:/dev/dri

挂载盘命令
mount -t nfs -o rw 192.168.1.218:/filezfs/ /mnt/nfs
mount -t nfs -o rw 192.168.1.170:/fileshare /root/filezfs/
自动挂载,修改/etc/fstab
192.168.1.218:/filezfs /mnt/nfs nfs rw 0 1
192.168.1.170:/fileshare /root/filezfs/ nfs rw 0 1
version: “3.9”
services:
jellyfin:
image: nyanmisaka/jellyfin:latest-rockchip
container_name: jellyfin
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
volumes:
- /srv/dev-disk-by-uuid-197be90c-4c64-4498-b84c-85d60a61a686/fileshare/Appdata/config:/config #冒号前面是主机路径,就是我们实际的数据地址,冒号后面是容器路径,我的理解,算是个虚拟的,它实际映射出来的地址就是数据真是地址
- /srv/dev-disk-by-uuid-197be90c-4c64-4498-b84c-85d60a61a686/fileshare/media/movies:/movies #电视剧数据存放路径
- /srv/dev-disk-by-uuid-197be90c-4c64-4498-b84c-85d60a61a686/fileshare/media/tvseries:/tvseries #电视剧数据存放路径
- /srv/dev-disk-by-uuid-197be90c-4c64-4498-b84c-85d60a61a686/fileshare/media/musics:/musics
- /srv/dev-disk-by-uuid-197be90c-4c64-4498-b84c-85d60a61a686/fileshare/media/others:/others
ports:
- "8096:8096" # Web 界面端口
- "8920:8920" # HTTPS (可选)
- "7359:7359/udp" # 局域网自动发现
- "1900:1900/udp" # DLNA
devices: #显卡直通
- /dev/dri:/dev/dri
(5 封私信) docker配置镜像Docker pull时报错:https://registry-1.docker.io/v2/ – 知乎
docker配置镜像Docker pull时报错:https://registry-1.docker.io/v2/
systemctl status docker
sudo mkdir -p /etc/docker
vim /etc/docker/daemon.json
添加下面
{
“registry-mirrors” : [“https://docker.registry.cyou”,
“https://docker-cf.registry.cyou”,
“https://dockercf.jsdelivr.fyi”,
“https://docker.jsdelivr.fyi”,
“https://dockertest.jsdelivr.fyi”,
“https://mirror.aliyuncs.com”,
“https://dockerproxy.com”,
“https://mirror.baidubce.com”,
“https://docker.m.daocloud.io”,
“https://docker.nju.edu.cn”,
“https://docker.mirrors.sjtug.sjtu.edu.cn”,
“https://docker.mirrors.ustc.edu.cn”,
“https://mirror.iscas.ac.cn”,
“https://docker.rainbond.cc”,
“https://do.nark.eu.org”,
“https://dc.j8.work”,
“https://dockerproxy.com”,
“https://gst6rzl9.mirror.aliyuncs.com”,
“https://registry.docker-cn.com”,
“http://hub-mirror.c.163.com”,
“http://mirrors.ustc.edu.cn/”,
“https://mirrors.tuna.tsinghua.edu.cn/”,
“http://mirrors.sohu.com/”
],
“insecure-registries” : [
“registry.docker-cn.com”,
“docker.mirrors.ustc.edu.cn”
],
“debug”: true,
“experimental”: false
}
sudo systemctl daemon-reload
sudo systemctl restart docker
docker info