
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
分享将人大金仓数据库封装Docker镜像方法
使用的人大金仓版本号:V008R003C002B0320
tree ./ -L 1 ./ ├── build.sh ├── Dockerfile ├── entrypoint.sh ├── initdb.sh ├── kingbase.tar.gz ├── license.dat ├── password └── README.md 0 directories, 8 files
bashdocker pull haloking/kingbase:v8r3
bashdocker pull ghcr.io/eazonziu/kingbase:v8r3
如果您想自己构建镜像可参照以下操作:
bashgit clone https://github.com/EazonZiu/kingbase-v8-r3.git cd kingbase-v8-r3 sh build.sh
bashsh service.sh
bashdocker run -d --name kingbase-v8r3 -p 54321:54321 \ -e SYSTEM_USER=kingbase -e SYSTEM_PWD=qwe123 \ -v $(pwd)/volumes/opt/data:/opt/kingbase/data \ -v $(pwd)/volumes/opt/license.dat:/opt/kingbase/Server/bin/license.dat \ --restart=always kingbase:v8r3
bashThe files belonging to this database system will be owned by user "kingbase". This user must also own the server process. The database cluster will be initialized with locale "C". The default text search configuration will be set to "english". Data page checksums are disabled. The comparision of strings is case-insensitive. fixing permissions on existing directory /opt/kingbase/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok create samples database ... ok loading samples database ... ok loading template2 database ... ok create security database ... ok load security database ... ok syncing data to disk ... ok Success. You can now start the database server using: ./sys_ctl -D /opt/kingbase/data -l logfile start server starting LOG: redirecting log output to logging collector process HINT: Future log output will appear in directory "sys_log".
bashsh conn.sh
bashjdbc:kingbase8://ip:host/datasource
注意 license.dat 使用到是企业版,会有限期;使用下载的镜像可以重新挂载自己的,或者修改当前目录的重新构建新镜像
注意 启动容器后 ,无法使用有数据的挂载目录情况下 修改用户或密码 ,重新启动还是原来的用户和密码
bashmax_connect = 10 superuser_reserved_connections = 5 #小于max_connect super_manager_reserved_connections = 3 #小于superuser_reserved_connections
https://github.com/chyidl/kingbase-es-v8-r6-docker
https://github.com/renfei/kingbase-es-v8-r3-docker
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务