title: How do I edit files in a docker image?
body: <p>I am just setting up docker on my local machine for web-dev.</p>
  
  <p>I have seen lots of tutorials for docker with rails etc...</p>
  
  <p>I am curious how does docker work in terms of editing the projects source code.</p>
  
  <p>I am trying to wrap my head around this <code>-v</code> tag.</p>
  
  <p>In many of the tutorials I have seen users have stored their <code>Dockerfile</code> in the project base directory and the built from there, do you just edit the code in the directory and refresh the browser? And leave docker running.</p>
  
  <p>Just trying to wrap my head around it all, sorry if basic question.</p>