title: How to write or create new data in Docker Writable Layer
body: <p>I understand that each Docker container would have a writable layer to persist or save container related data. Even though it is epimeral, I would like to store my app data inside the container. </p>
  
  <ul>
  <li>How do I know the directory to store that (app) file?</li>
  <li>How does the <a href="https://docs.docker.com/storage/storagedriver/" rel="nofollow noreferrer">storage drivers</a> play a role?</li>
  </ul>
  
  <pre><code>drwxr-xr-x 1 root root 4096  app
  drwxr-xr-x 2 root root 4096  mount
  dr-xr-xr-x 13 root root 0  sys
  </code></pre>
  
  <p>When doing  <code>ls -lrt</code> inside my container I do see all the directories are not having the write permissions for the non-root user. Since I'm running my container as a non-root user I'm not sure how I can store the app data inside the container. </p>
  
  <p>Any pointers would be helpful. </p>