This is a Docker image with DB2 Express-C installed
10K+
Pull the Docker image to local machine docker pull oelprince/db2:latest Pulls the docker image with DB2 Express-C installed by default.
Start the container in docker daemon The execution of the container should be in Privileged mode docker run -it -d -P --privileged=true -p 50000:50000 oelprince/db2:latest -p 50000:50000 exposes port 50000 to allow connections from the host
Attach the container and Start DB2
To access the console, attach to the docker container
sudo docker attach <container ID / Name of the container>
Switch to DB2 user to start the DB2 instance and start the DB2
NOTE : the db2inst1 default password is 'db2inst1'
su - db2inst1
db2start
Create a new database
db2 create database MYDB
Once the container is configured you can exit the container and keep it running with:
CTRL + P + Q ########################
docker run -d -p 50000:50000 -e DB2INST1_PASSWORD=db2inst1-pwd -e LICENSE=accept oelprince/db2:latest if add -e DB2NAME= you create new database
Content type
Image
Digest
Size
510.4 MB
Last updated
about 8 years ago
docker pull oelprince/db2