银河麒麟V10-Server_amd64版部署达梦数据库docker版

银河麒麟没有对应docker源安装docker
对标centos7
安装fuse-overlayfs、slirp4netns

yum install -y https://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/x86_64/Packages/slirp4netns-0.4.3-4.el7_8.x86_64.rpm
yum install -y https://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/x86_64/Packages/fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm

添加阿里源

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

更改源文件

sed -i 's/$releasever/7/g' docker-ce.repo

[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

安装docker

yum -y install docker-ce

安装国产达梦数据库

wget -O dm8_docker.tar -c https://download.dameng.com/eco/dm8/dm8_docker.tar

导入tar包

docker import dm8_docker.tar dm8:v01

运行容器

docker run -itd -p 5236:5236 --name dm8_01 dm8:v01 /bin/bash /startDm.sh

查看运行状态

docker logs -f  dm8_01

dm8.png

# docker  db 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×