Skip to content

Docker 安装 Kingbase 人大金仓

Docker 镜像下载:https://download.kingbase.com.cn/xzzx/index.htm

下载时需要手机验证码......

Docker 安装文档:Docker 安装详解

shell
docker run --name kingbase -idt --privileged -p 54321:54321 kingbase:v1 /usr/sbin/init

docker run --name kingbase -idt --privileged -p 9009:54321 \
-e DB_USER=kingbase \
-e DB_PASSWORD=Aday.fun \
kingbase_v009r001c002b0014_single_x86:v1 /usr/sbin/init

# 挂载卷
docker run --name kingbase -idt --privileged -p 54321:54321 \
–v /opt/kingbase/data:/home/kingbase/userdata/data \
kingbase:v1 /usr/sbin/init

# 环境变量
docker run -tid \
--name kingbase \
-e ENABLE_CI=${enable_ci} \
-e NEED_START=${need_start} \
-e DB_USER=${username} \
-e DB_PASSWORD=${passwd} \
-e DB_MODE=${dbmode} \
kingbase:v1 \
/bin/bash

数据库默认实例:kingbase

数据库默认用户名:system

数据库默认密码:123456

数据库默认data目录:/home/kingbase/userdata/data

shell
docker logs kingbase