安装包下载
下载地址:https://www.kingbase.com.cn/xzzx/index.htm
导入镜像
docker load -i kdb_x86_64_V008R006C008B0020.tar
运行镜像
docker run -tid --privileged \
-p 54321:54321 \
-v /home/project/data/kingbase:/home/kingbase/userdata/ \
-e NEED_START=yes \
-e DB_USER=kingbase \
-e DB_PASSWORD=mima \
-e DB_MODE=mysql \
--name kingbase \
kingbase_v008r006c008b0020_single_x86:v1 /usr/sbin/init
具体参数介绍参考官方产品手册:https://help.kingbase.com.cn/v8/install-updata/install-docker/install-docker-1.html#id6