1. 下载dm for docker安装包
https://eco.dameng.com/document/dm/zh-cn/start/dm-install-docker.html
2. docker导入dm的镜像
[root]# docker load -i dm8_20220822_rev166351_x86_rh6_64_ctm.tar
644879075e24: Loading layer [==================================================>] 117.9 MB/117.9 MB
d7ff1dc646ba: Loading layer [==================================================>] 15.87 kB/15.87 kB
686245e78935: Loading layer [==================================================>] 14.85 kB/14.85 kB
d73dd9e65295: Loading layer [==================================================>] 5.632 kB/5.632 kB
2de391e51d73: Loading layer [==================================================>] 3.072 kB/3.072 kB
5d3893664e8e: Loading layer [==================================================>] 42.94 MB/42.94 MB
86739628cd5d: Loading layer [==================================================>] 275.5 MB/275.5 MB
a8cca048a547: Loading layer [==================================================>] 4.608 kB/4.608 kB
8af79446e96a: Loading layer [==================================================>] 2.56 kB/2.56 kB
a28e591b0aad: Loading layer [==================================================>] 4.608 kB/4.608 kB
Loaded image: dm8_single:v8.1.2.128_ent_x86_64_ctm_pack4
3. 查看docker镜像
[root]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dm8_single v8.1.2.128_ent_x86_64_ctm_pack4 ccb727ce9dce 5 months ago 432 MB
4. 启动容器
[root]# docker run -d -p 5236:5236 --restart=always --name dm8_01 --privileged=true -e PAGE_SIZE=16 -e LD_LIBRARY_PATH=/opt/dmdbms/bin -e INSTANCE_NAME=dm8_01 -v /data/dm8_01:/opt/dmdbms/data dm8_single:v8.1.2.128_ent_x86_64_ctm_pack4
05289a4a9776272f5480ea5093553b45bcdddcc3eec21b0d67cc9f3dec63a24f
5. 查看运行的容器
[root]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
05289a4a9776 dm8_single:v8.1.2.128_ent_x86_64_ctm_pack4 "/bin/bash /opt/st..." 19 seconds ago Up 17 seconds 0.0.0.0:5236->5236/tcp dm8_01
6. 查看容器的启动日志
[root]# docker logs -f dm8_01
7. 容器的启动、停止
启动容器
[root]# docker start dm8_01
关闭容器
[root]# docker stop dm8_01
注释:
用户名:SYSDBA
密码:SYSDBA001
参考:https://eco.dameng.com/document/dm/zh-cn/start/dm-install-docker.html
标签:kB,layer,DM,01,Loading,dm8,Docker,安装,docker From: https://www.cnblogs.com/haha029/p/17098773.html