云原生之使用Docker部署Booksonic有声读物平台

举报
江湖有缘 发表于 2022/11/13 21:58:58 2022/11/13
【摘要】 云原生之使用Docker部署Booksonic-air有声读物平台

一、Booksonic介绍

Booksonic是一个可以随时随地访问您拥有的有声读物的平台。

二、检查docker状态

[root@node ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2022-11-06 06:02:26 CST; 1 weeks 0 days ago
     Docs: https://docs.docker.com
 Main PID: 9869 (dockerd)
    Tasks: 204
   Memory: 2.4G
   CGroup: /system.slice/docker.service
           ├─  9869 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
           ├─ 34968 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8097 -container-ip 172.17.0.6 -container-port 80
           ├─ 34973 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8097 -container-ip 172.17.0.6 -container-port 80
           ├─ 34986 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 473 -container-ip 172.17.0.6 -container-port 443
           ├─ 34992 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 473 -container-ip 172.17.0.6 -container-port 443
           ├─ 45650 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3522 -container-ip 192.168.48.2 -container-port 3306
           ├─ 45656 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3522 -container-ip 192.168.48.2 -container-port 3306
           ├─ 46338 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9300 -container-ip 172.17.0.2 -container-port 9000
           ├─ 46344 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9300 -container-ip 172.17.0.2 -container-port 9000
           ├─ 46357 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.17.0.2 -container-port 443
           ├─ 46363 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 443 -container-ip 172.17.0.2 -container-port 443
           ├─ 46376 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8011 -container-ip 172.17.0.2 -container-port 80
           ├─ 46382 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8011 -container-ip 172.17.0.2 -container-port 80
           ├─ 49401 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8190 -container-ip 172.17.0.7 -container-port 8090
           ├─ 49406 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8190 -container-ip 172.17.0.7 -container-port 8090
           ├─ 71708 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3520 -container-ip 172.17.0.3 -container-port 3000
           ├─ 71714 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3520 -container-ip 172.17.0.3 -container-port 3000
           ├─ 76830 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.17.0.4 -container-port 8080
           ├─ 76835 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8080 -container-ip 172.17.0.4 -container-port 8080
           ├─ 76849 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
           ├─ 76854 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
           ├─ 76868 /usr/bin/docker-proxy -proto udp -host-ip 0.0.0.0 -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
           ├─ 76874 /usr/bin/docker-proxy -proto udp -host-ip :: -host-port 6881 -container-ip 172.17.0.4 -container-port 6881
           ├─101732 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9200 -container-ip 192.168.32.3 -container-port 9100
           ├─101746 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9200 -container-ip 192.168.32.3 -container-port 9100
           ├─101760 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3010 -container-ip 192.168.32.4 -container-port 3000
           ├─101766 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 3010 -container-ip 192.168.32.4 -container-port 3000
           ├─102555 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9122 -container-ip 192.168.32.2 -container-port 9090
           ├─102561 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9122 -container-ip 192.168.32.2 -container-port 9090
           ├─116950 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9800 -container-ip 172.17.0.5 -container-port 9000
           └─116955 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9800 -container-ip 172.17.0.5 -container-port 9000

Nov 13 20:10:31 node dockerd[9869]: time="2022-11-13T20:10:31.320915575+08:00" level=info msg="Download failed, retrying (3/5): receive...er Error"
Nov 13 20:10:35 node dockerd[9869]: time="2022-11-13T20:10:35.071791743+08:00" level=info msg="Attempting next endpoint for pull after ...er Error"
Nov 13 20:23:45 node dockerd[9869]: time="2022-11-13T20:23:45.037117196+08:00" level=info msg="Download failed, retrying (1/5): unexpected EOF"
Nov 13 20:27:07 node dockerd[9869]: time="2022-11-13T20:27:07.210148946+08:00" level=info msg="Download failed, retrying (1/5): read tc... by peer"
Nov 13 20:42:47 node dockerd[9869]: time="2022-11-13T20:42:47.355037527+08:00" level=info msg="Download failed, retrying (2/5): read tc... by peer"
Nov 13 21:05:45 node dockerd[9869]: time="2022-11-13T21:05:45.272980366+08:00" level=info msg="Download failed, retrying (3/5): read tc... by peer"
Nov 13 21:24:40 node dockerd[9869]: time="2022-11-13T21:24:40.750037647+08:00" level=error msg="Not continuing with pull after error: c...canceled"
Nov 13 21:24:40 node dockerd[9869]: time="2022-11-13T21:24:40.812420882+08:00" level=info msg="Layer sha256:106bde4d8d7c05b5cca3815f07b...eaned up"
Nov 13 21:24:40 node dockerd[9869]: time="2022-11-13T21:24:40.813181348+08:00" level=info msg="Layer sha256:e0b11116e15f08f66d9577befb3...eaned up"
Nov 13 21:24:40 node dockerd[9869]: time="2022-11-13T21:24:40.833138993+08:00" level=info msg="Layer sha256:36fde0c4be8e5973031aafea237...eaned up"
Hint: Some lines were ellipsized, use -l to show in full.

三、下载Booksonic镜像

[root@node booksonic]# docker pull linuxserver/booksonic
Using default tag: latest
latest: Pulling from linuxserver/booksonic
e9c65d87dbaf: Pull complete 
099db77a740a: Pull complete 
6d6a0193f72d: Pull complete 
0ce65de83cb2: Pull complete 
abeb82c7c167: Pull complete 
2f0e5916d006: Pull complete 
8fe1165797a5: Pull complete 
39ee9740fb59: Pull complete 
b39699e69a88: Pull complete 
9d34a629747a: Pull complete 
Digest: sha256:3a314a098d4188aaaf55d7eb5a1b9ad1f8c085e3d12a1649e12d62886110deb2
Status: Downloaded newer image for linuxserver/booksonic:latest
docker.io/linuxserver/booksonic:latest



四、部署Booksonic

1.创建数据目录

[root@node ~]# mkdir -p  /data/booksonic/{appdata,audiobooks,podcasts,othermedia}
[root@node ~]# chmod -R 777 /data/booksonic/
[root@node ~]# cd /data/booksonic/
[root@node booksonic]# 

2.创建Booksonic容器

docker run -d \
  --name=booksonic-air \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Shanghai \
  -e CONTEXT_PATH=url-base \
  -p 4040:4040 \
  -v /data/booksonic/appdata/config:/config \
  -v /data/booksonic/audiobooks:/audiobooks \
  -v /data/booksonic/podcasts:/podcasts \
  -v /data/booksonic/othermedia:/othermedia \
  --restart unless-stopped \
linuxserver/booksonic:latest

3.查看Booksonic容器状态

[root@node booksonic]# docker ps
[root@node booksonic]# docker ps
CONTAINER ID   IMAGE                                                   COMMAND                  CREATED         STATUS         PORTS                                                                                                                             NAMES
aa9d707b08bf   linuxserver/booksonic:latest                            "/init"                  3 seconds ago   Up 2 seconds   0.0.0.0:4040->4040/tcp, :::4040->4040/tcp                                                                                         booksonic-air




五、访问Booksonic

image.png

六、修改中文语言

image.png
image.png

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。