云原生之使用docker部署Koodo Reader电子书阅读器
【摘要】 云原生之使用docker部署Koodo Reader电子书阅读器
一、Koodo Reader介绍
Koodo Reader 是一个开源免费的电子书阅读器,支持多达15种主流电子书格式, 内置笔记、高亮、翻译功能,助力高效书籍阅读和学习。
二、检查docker状态
[root@server001 ~]# 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 1 days ago
Docs: https://docs.docker.com
Main PID: 9869 (dockerd)
Tasks: 17
Memory: 2.2G
CGroup: /system.slice/docker.service
└─9869 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Nov 14 22:30:23 server001 dockerd[9869]: time="2022-11-14T22:30:23.149457043+08:00" level=info msg="Container failed to exit within 10s ...03a5f88d
Nov 14 22:30:23 server001 dockerd[9869]: time="2022-11-14T22:30:23.191892564+08:00" level=info msg="ignoring event" container=672c3438d9...kDelete"
Nov 14 22:41:26 server001 dockerd[9869]: time="2022-11-14T22:41:26.110484832+08:00" level=info msg="ignoring event" container=37a7401ce7...kDelete"
Nov 14 23:00:03 server001 dockerd[9869]: time="2022-11-14T23:00:03.899436227+08:00" level=info msg="Container failed to exit within 10s ...dde0d014
Nov 14 23:00:03 server001 dockerd[9869]: time="2022-11-14T23:00:03.942747053+08:00" level=info msg="ignoring event" container=7c726140a1...kDelete"
Nov 14 23:07:40 server001 dockerd[9869]: time="2022-11-14T23:07:40.338292217+08:00" level=info msg="ignoring event" container=9c78d5b9d1...kDelete"
Nov 14 23:07:40 server001 dockerd[9869]: time="2022-11-14T23:07:40.556135522+08:00" level=info msg="ignoring event" container=1932d4e66d...kDelete"
Nov 14 23:32:22 server001 dockerd[9869]: time="2022-11-14T23:32:22.670922544+08:00" level=info msg="ignoring event" container=60235239f1...kDelete"
Nov 14 23:32:22 server001 dockerd[9869]: time="2022-11-14T23:32:22.855970045+08:00" level=info msg="ignoring event" container=c4a43ebc18...kDelete"
Nov 14 23:32:23 server001 dockerd[9869]: time="2022-11-14T23:32:23.088696932+08:00" level=info msg="ignoring event" container=e1bec0a05f...kDelete"
Hint: Some lines were ellipsized, use -l to show in full.
三、下载Koodo Reader镜像
[root@server001 ~]# docker pull wbsu2003/koodo-reader
Using default tag: latest
latest: Pulling from wbsu2003/koodo-reader
f7ec5a41d630: Pull complete
d064bcebeb06: Pull complete
975c0a9d7b94: Pull complete
1384c783a2a3: Pull complete
a0f1673d45e1: Pull complete
fc05b7dad2e3: Pull complete
10342455464e: Pull complete
0fbaab8df9e5: Pull complete
Digest: sha256:1371f7f2442d9fa696d82d6db449858b8b8be907fdb8bffbe2a0fb9868c0a57e
Status: Downloaded newer image for wbsu2003/koodo-reader:latest
docker.io/wbsu2003/koodo-reader:latest
四、部署Koodo Reader
1.创建Koodo Reader容器
[root@server001 ~]# docker run -d --name koodo --restart always -p 8765:80 wbsu2003/koodo-reader:latest
f98d5dcd43773eccd8bcb4a1992c60d1aa63e7e249d502081ca0f5b9640f50e7
2.查看Koodo Reader容器状态
[root@server001 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f98d5dcd4377 wbsu2003/koodo-reader:latest "/docker-entrypoint.…" 29 seconds ago Up 28 seconds 0.0.0.0:8765->80/tcp, :::8765->80/tcp koodo
3.检查容器运行日志
[root@server001 ~]# docker logs koodo
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2022/11/14 16:12:38 [notice] 1#1: using the "epoll" event method
2022/11/14 16:12:38 [notice] 1#1: nginx/1.20.0
2022/11/14 16:12:38 [notice] 1#1: built by gcc 8.3.0 (Debian 8.3.0-6)
2022/11/14 16:12:38 [notice] 1#1: OS: Linux 3.10.0-957.el7.x86_64
2022/11/14 16:12:38 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 65536:65536
2022/11/14 16:12:38 [notice] 1#1: start worker processes
2022/11/14 16:12:38 [notice] 1#1: start worker process 31
2022/11/14 16:12:38 [notice] 1#1: start worker process 32
五、访问Koodo Reader
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)