Docker 安装达梦8数据库-5步成功

拉取镜像

复制代码
docker pull registry.cn-hangzhou.aliyuncs.com/qiluo-images/dm8_single:dm8_20230808_rev197096_x86_rh6_64
dm8_20230808_rev197096_x86_rh6_64: Pulling from qiluo-images/dm8_single
b234f539f7a1: Pull complete 
55172d420b43: Pull complete 
5ba5bbeb6b91: Pull complete 
43ae2841ad7a: Pull complete 
f6c9c6de4190: Pull complete 
0c31b1ac7f26: Pull complete 
7935fbbf3750: Pull complete 
9b7694d36286: Pull complete 
02d556c7442d: Pull complete 
c0ffcbed710d: Pull complete 
1c3d4f922fc5: Pull complete 
4324472a6e09: Pull complete 
43c548ad57bf: Pull complete 
63f317acd1e9: Pull complete 
73a7432c1ccc: Pull complete 
97b2cdfc978c: Pull complete 
2470c8dc8f0c: Pull complete 
Digest: sha256:af1b7e5f395d57624c2b676d335942f4802a7aec5123dbaa70afd2747cf66179
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/qiluo-images/dm8_single:dm8_20230808_rev197096_x86_rh6_64
registry.cn-hangzhou.aliyuncs.com/qiluo-images/dm8_single:dm8_20230808_rev197096_x86_rh6_64
[root@Tseng ~]#

创建目录

复制代码
[root@Tseng ~]# mkdir -p /data/dm8/data
[root@Tseng ~]# chmod -R 755 /data/dm8/data
[root@Tseng ~]# chown -R 1001:1001 /data/dm8/data

运行

复制代码
docker run -d   -p 25236:5236   --restart=always   --name dm8   --privileged=true   -e PAGE_SIZE=16   -e UNICODE_FLAG=1   -e CASE_SENSITIVE=0   -e SYSDBA_PWD='Sdzj@Pass123'   -v /data/dm8/data:/opt/dmdbms/data   registry.cn-hangzhou.aliyuncs.com/qiluo-images/dm8_single:dm8_20230808_rev197096_x86_rh6_64

[root@Tseng dm8]# docker logs --tail 200 dm8
Script start.
file dm.key not found, use default license!
License will expire on 2026-02-11
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL

 log file path: /opt/dmdbms/data/DAMENG/DAMENG01.log


 log file path: /opt/dmdbms/data/DAMENG/DAMENG02.log

write to dir [/opt/dmdbms/data/DAMENG].
create dm database success. 2026-01-28 16:07:32
initdb V8
db version: 0x7000c
Init DM success!
Start DmAPService...
[root@Tseng dm8]#

初始化密码

复制代码
[root@Tseng dm8]# docker exec -it dm8 env LD_LIBRARY_PATH=/opt/dmdbms/bin /bin/bash
root@4326accc5df3:/# /opt/dmdbms/bin/disql SYSDBA/Tseng@Pass123
comm_inet_server_connect_port cannot get the address information, servername is Pass123, port is 5236.
[-70028]:Create SOCKET connection failure.
disql V8
username:SYSDBA
password:

Server[LOCALHOST:5236]:mode is normal, state is open
login used time : 4.620(ms)
SQL>

测试-工具 SQLark-百灵连接

相关推荐
学渣超7 小时前
微服务日志智能诊断系统(九) 让 LLM 成为日志分析专家
java·后端·agent
学渣超7 小时前
微服务日志智能诊断系统(七) 日志 RAG 引擎——蒸馏、索引与精准检索
java·后端·agent
掉鱼的猫7 小时前
代码审查 Agent Harness 实战:AI 自动 Code Review
java·llm·agent
学渣超7 小时前
微服务日志智能诊断系统(六) Fast Path vs Slow Path——双路径日志诊断策略
java·后端·agent
添砖java_8577 小时前
网页聊天室测试报告
java·spring boot·spring·maven
hai3152475437 小时前
九章编译法:DEEPSEEK V3.2汇编编译实例
java·开发语言
Databend7 小时前
小 Bitmap,大优化:Databend 如何加速大规模集合聚合
大数据·数据库·sql
倔强的石头_7 小时前
KES 优化行为避坑指南-那条从没被质疑过的 LEFT JOIN,在迁 KES 时终于露馅了
数据库
Database_Cool_7 小时前
RAG 混合检索首选:阿里云 Lindorm 向量+全文一体化检索
数据库·阿里云·django·云计算
ONE_SIX_MIX7 小时前
lightweight-charts-onesixth v2.8.1 → v3.1.1 更新总览
java·前端·python