Sign inSign up

bothurgren/db2-express-centos

By bothurgren

•Updated over 8 years ago

db2 express c version 11 on Centos 7

Image
0

10K+

bothurgren/db2-express-centos repository overview

⁠Set variables

image_repo=db2-express-centos; image_tag=latest; port=50000; insthome=/home/${instname}; contname=${image_repo}; datavol=/db2data;

⁠Pull from sources

docker pull bothurgren/${image_repo}:${image_tag

⁠Clone from Source

git clone https://[email protected]/bothurgren/db2-express-centos.git⁠

⁠docker build

docker build --build-arg DB2INST_PWD=mySecretPwd -t ${image_repo}:${image_tag} .

⁠Create volumes

docker volume create ${contname}_db2data

⁠Run container

docker run --privileged=true -p $port:$port --mount source=${contname}_db2data,destination=$datavol -t -d -u $instname --name="${contname}" ${image_repo}:${image_tag} /bin/su -c '/tmp/start-db.sh' - $instname

Tag summary

Content type

Image

Digest

Size

1.2 GB

Last updated

over 8 years ago

docker pull bothurgren/db2-express-centos