bryantsai / db2-docker

14 stars 8 forks source link

Install DB2 witout Root privilege #2

Open angoca opened 9 years ago

angoca commented 9 years ago

I have read your article and checked out your project. They are very interesting, and I see you have work a lot on this installation.

I propose you to install DB2 and create an instance without root privilege. This could reduce the need to use extra configuration in order to deal with the memory.

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.qb.server.doc/doc/t0050571.html?lang=en


I see that you name the instances as db2instX, however it limits the instalation to 10 instance (0-9), however the instance name can be any username in linux.

bryantsai commented 9 years ago

Since this is for Docker container usage, I didn't see a particular need to do non-root installation. Regarding "reduce the need to use extra configuration in order to deal with the memory", do you mean "—privileged=true" is not needed for non-root installation?

As for the instance names ... I believe in single purpose container: a Docker container should only have single instance (i.e. create another for a new instance) hence it could just be db2inst1.