
haloking/kingbase分享将人大金仓数据库封装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 [***] 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
[***]
[***]






探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务