Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

蓝鲸配置平台-Docker Standalone模式正确安装方式 #8160

Open
fishorpalm opened this issue Aug 25, 2024 · 2 comments
Open

蓝鲸配置平台-Docker Standalone模式正确安装方式 #8160

fishorpalm opened this issue Aug 25, 2024 · 2 comments

Comments

@fishorpalm
Copy link

fishorpalm commented Aug 25, 2024

官方的一些安装文档的槽点

  • 这是官方的安装文档:v3.13.7安装文档。1:用户名密码哪去了? 2:如果你是在测试环境使用上面文档部署的,不能直接使用127.0.0.1访问,那要进入容器里面该run.sh的ip配置,也不给个说明,还要在issue里面找方案
  • run.sh是何人的部将写的(run.sh是docker镜像的启动脚本),每次重启都会修改配置,修改也就算了,还重复添加配置,导致重启后服务起不来,浪费一下午时间
    image

正确的步骤:

# 下载镜像文件
docker pull ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:v3.13.7

# 启动容器,注意内外端口号要一致,如果要改成其它的,容器里面的run.sh也要修改
docker run -d -p 8090:8090 ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:v3.13.7

# 进入容器
docker exec -it 9d9d43a2ecf /bin/bash

# 修改run.sh的ip配置为宿主服务器的ip
sed -i 's/ip=127\.0\.0\.1/ip=192.168.110.86/g' run.sh
# 注释掉重启修改配置的代码
sed -i '7,12 s/^/#/' run.sh && sed -i '20,22 s/^/#/' run.sh && sed -i '31,32 s/^/#/' run.sh

# 重启容器
docker restart 9d9d43a2ecf

# 访问测试
http://192.168.110.86:8090
用户名/密码:bk-cmdb/blueking
@SdEnd
Copy link

SdEnd commented Aug 29, 2024

国内开源环境是真的差

@bd-xiaowang bd-xiaowang added feature 需求,标记分类 and removed feature 需求,标记分类 labels Sep 5, 2024
@HankXiezz
Copy link

比官方的详细

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants