title: How can I have a host and container read/write the same files with Docker?
body: <p>I would like to volume mount a directory from a Docker container to my work station, so when I edit the content in the volume mount from my work station it updated in the container as well. It would be very useful for testing and develop web applications in general.</p>
  
  <p>However I get a permission denied in the container, because the UID's in the container and host isn't the same. Isn't the original purpose of Docker that it should make development faster and easier?</p>
  
  <p><a href="https://stackoverflow.com/a/48536224/256439">This answer</a> works around the issue I am facing when volume mounting a Docker container to my work station. But by doing this, I make changes to the container that I won't want in production, and that defeats the purpose of using Docker during development.</p>
  
  <p>The container is <a href="https://en.wikipedia.org/wiki/Alpine_Linux" rel="nofollow noreferrer">Alpine Linux</a>, work station <a href="https://en.wikipedia.org/wiki/Fedora_%28operating_system%29" rel="nofollow noreferrer">Fedora</a> 29, and editor <a href="https://en.wikipedia.org/wiki/Atom_(text_editor)" rel="nofollow noreferrer">Atom</a>.</p>
  
  <p><strong>Question</strong></p>
  
  <p>Is there another way, so both my work station and container can read/write the same files?</p>