IBM WebSphere Liberty Profile and IBM DB2 and Docker - An approach
and had a query from a colleague last week.
So I did some of again ....
The context is that my colleague was looking to run a Java class, using the DB2 JDBC JCC4 drivers, where DB2 was running in a Docker container.
So I replicated this, using Liberty as my Java runtime ....
Here's the details: -
Create a directory on the host for DB2 to use for its datastore
Start a DB2 container
docker run -itd --name mydb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=p455w0rd -e DBNAME=testdb -v /tmp/db2data:/database ibmcom/db2