云原生之使用Docker部署TeaKKi知识文档管理工具
【摘要】 云原生之使用Docker部署TeaKKi知识文档管理工具
一、TeaKKi介绍
Teakki是一款知识文档管理工具,当前支持企业本地私有化部署,免费试用有效期30天。适用于团队, 企业的知识协作和管理.,为你构建团队的知识库!TeaKKi专注知识知识协作, 让团队知识协作变得简单高效。
二、检查docker环境
1.检查docker版本
[root@docker ~]# docker -v
Docker version 20.10.18, build b40c2f6
2.检查docker状态
[root@docker ~]# 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-10-23 19:15:37 CST; 2h 39min ago
Docs: https://docs.docker.com
Main PID: 9693 (dockerd)
Tasks: 38
Memory: 1.8G
CGroup: /system.slice/docker.service
├─ 9693 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
├─14136 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 40001 -container-ip 172.22.0.2 -container-port ...
├─14141 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 40001 -container-ip 172.22.0.2 -container-port 3000
├─29690 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.17.0.2 -container-port 8...
└─29696 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8080 -container-ip 172.17.0.2 -container-port 8080
Oct 23 19:16:37 docker dockerd[9693]: time="2022-10-23T19:16:37.358178373+08:00" level=info msg="Download failed, retryi... Error"
Oct 23 19:16:57 docker dockerd[9693]: time="2022-10-23T19:16:57.698447445+08:00" level=info msg="Download failed, retryi... Error"
Oct 23 19:17:08 docker dockerd[9693]: time="2022-10-23T19:17:08.039835261+08:00" level=info msg="Download failed, retryi... Error"
Oct 23 19:17:11 docker dockerd[9693]: time="2022-10-23T19:17:11.715788090+08:00" level=info msg="Attempting next endpoin... Error"
Oct 23 19:30:28 docker dockerd[9693]: time="2022-10-23T19:30:28.349978887+08:00" level=info msg="ignoring event" contain...Delete"
Oct 23 19:31:15 docker dockerd[9693]: time="2022-10-23T19:31:15.187009300+08:00" level=info msg="Attempting next endpoin...nknown"
Oct 23 19:38:05 docker dockerd[9693]: time="2022-10-23T19:38:05.751483104+08:00" level=info msg="ignoring event" contain...Delete"
Oct 23 19:39:16 docker dockerd[9693]: time="2022-10-23T19:39:16.851414570+08:00" level=info msg="Attempting next endpoin...nknown"
Oct 23 19:40:36 docker dockerd[9693]: time="2022-10-23T19:40:36.968363035+08:00" level=info msg="Attempting next endpoin...nknown"
Oct 23 19:40:52 docker dockerd[9693]: time="2022-10-23T19:40:52.772170126+08:00" level=error msg="Not continuing with pu...nceled"
Hint: Some lines were ellipsized, use -l to show in full.
三、下载TeaKKi镜像
[root@docker ~]# docker pull teakki/teakki:2.8
2.8: Pulling from teakki/teakki
ff50d722b382: Pull complete
2c52cda8237e: Pull complete
4f900d517033: Pull complete
ddcfba33c0f7: Pull complete
71f05fb5f703: Pull complete
dad60075c00e: Pull complete
8dc20b2289da: Pull complete
d7b28451ed17: Pull complete
bc8f52f6b8f9: Pull complete
1cc0898ff25b: Pull complete
2468a88d4f02: Pull complete
5b7ad36d0371: Pull complete
b078dc63df78: Pull complete
Digest: sha256:f2faf3244729215b651b0dc8cac7461c041b8e320c3453b327e04c1dc8e9a038
Status: Downloaded newer image for teakki/teakki:2.8
docker.io/teakki/teakki:2.8
四、创建TeaKKi容器
1.创建数据目录
[root@docker ~]# mkdir /data/teakki
[root@docker ~]# cd /data/teakki/
[root@docker teakki]#
2.运行TeaKKi容器
[root@docker teakki]# docker run -d --name teakki --restart always -p 9010:9002 -v /data/teakii/data:/data teakki/teakki:2.8
80af6e5d971d64aae974c663c3ff9340276c06bf5cf8376789eff75b3d0ca413
3.查看TeaKKi容器状态
[root@docker teakki]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
80af6e5d971d teakki/teakki:2.8 "/bin/sh -c 'sh /roo…" 13 seconds ago Up 12 seconds 0.0.0.0:9010->9002/tcp, :::9010->9002/tcp teakki
4.查看容器日志
[root@docker teakki]# docker logs teakki
mkdir: cannot create directory `/data': File exists
MONGODB_URL:
start monogdb
about to fork child process, waiting until server is ready for connections.
forked process: 32
child process started successfully, parent exiting
mongodb started
start redis
redis started
start memcached
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0.7 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 49
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
49:M 23 Oct 22:09:53.972 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
49:M 23 Oct 22:09:53.972 # Server started, Redis version 3.0.7
49:M 23 Oct 22:09:53.972 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
49:M 23 Oct 22:09:53.972 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
49:M 23 Oct 22:09:53.972 * The server is now ready to accept connections on port 6379
memcached started
start es
五、TeaKKi初始化安装
1.进入初始化安装界面
2.设置用户名
六、TeaKKi基本操作
1.新建空间
2.新增文档
3.进入后台管理
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)