Db2 express c v10 image mount permission issue in docker
Budget: $10 – $30 USD
Hi,
I am trying to deploy db2 image using docker.
I am using below command to start db2 engine from dockerfile.
RUN su - db2inst1-c "abc.sh"
#####abc.sh######
#!bin/bash
db2start
-------------------------------------------------------------------------------------
I am trying to modify the above command like below,
USER db2inst1
RUN abc.sh
#####abc.sh######
#!bin/bash
~db2inst1/sqllib/adm/db2start
the db2start cmd failed because one or more db2 db manager program files was prevented from executing with root privileges by file system mount settings.
Please help to fix this.
I am trying to deploy db2 image using docker.
I am using below command to start db2 engine from dockerfile.
RUN su - db2inst1-c "abc.sh"
#####abc.sh######
#!bin/bash
db2start
-------------------------------------------------------------------------------------
I am trying to modify the above command like below,
USER db2inst1
RUN abc.sh
#####abc.sh######
#!bin/bash
~db2inst1/sqllib/adm/db2start
the db2start cmd failed because one or more db2 db manager program files was prevented from executing with root privileges by file system mount settings.
Please help to fix this.