title: Dockerfile USER cmd vs Linux su command
body: <p>I am trying to deploy db2 express image to docker using non-root user.</p>
  <p>The below code is used to start the db2engine using root user, it works fine.</p>
  <pre><code>FROM ibmoms/db2express-c:10.5.0.5-3.10.0
  
  ENV LICENSE=accept \
      DB2INST1_PASSWORD=password
  
  RUN su - db2inst1 -c &quot;db2start&quot;
  
  CMD [&quot;db2start&quot;]
  </code></pre>
  <p>The below code is used to start the db2engine from db2inst1 profile, giving below exception during image build. please help to resolve this.( I am trying to avoid su - command )</p>
  <pre><code>FROM ibmoms/db2express-c:10.5.0.5-3.10.0
  
  ENV LICENSE=accept \
      DB2INST1_PASSWORD=password
  
  USER db2inst1
  RUN /bin/bash -c ~db2inst1/sqllib/adm/db2start
  
  CMD [&quot;db2start&quot;]
  </code></pre>
  <p>SQL1641N  The db2start command failed because one or more DB2 database manager program files was prevented from executing with root privileges by file system mount settings.</p>