title: Docker Oracle12c Enterprise image created from container symlink broken
body: <p>We are trying to create a docker image from a container based on the Oracle 12c Enterprise Edition image from docker store (<a href="https://store.docker.com/images/oracle-database-enterprise-edition" rel="noreferrer">https://store.docker.com/images/oracle-database-enterprise-edition</a>). We have the container working ok and then, after stopping the container we create an image based on that container with the following command.</p>
  <pre><code>docker commit Oracle_12 oracle/oradb:1
  </code></pre>
  <p>Then, we try to run a container using the commited image with the following command:</p>
  <pre><code>docker run -d -it --name oradb_cont -p 1512:1521 -p 5500:5500 oracle/oradb:1
  </code></pre>
  <p>This container fails with the following error:</p>
  <pre><code>Start up Oracle Database
  Wed Nov 15 10:31:29 UTC 2017
  start database
  start listener
  The database is ready for use .
  tail: cannot open '/u01/app/oracle/diag/rdbms/orclcdb/ORCLCDB/trace/alert_ORCLCDB.log' for reading: No such file or directory
  tail: no files remaining
  </code></pre>
  <p>The container is &quot;Exited&quot; although the message &quot;The database is ready for use&quot;.
  We have attached a bash to the container to inspect where the missing file is. And the result seems to be that the &quot;/diag&quot; folder is a broken symlink:</p>
  <p><a href="https://i.stack.imgur.com/ibDp0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ibDp0.png" alt="enter image description here" /></a></p>
  <p>Starting the original Oracle 12c container and attaching a bash, the folder is present. It seems symlink is broken or the file is not present only in the image created from the container.</p>