title: Lifecycle of Files copied to a docker container
body: <p>I'm a Docker newbie and I fired the following command which successfully copied the file to a running container.</p>
  <p><code>sudo docker cp app.py 943395e93d1d:/app/app.py</code></p>
  <p>Note : The container was already contains a app.py and so my guess was that because app.py is running inside the container it will not allow the copy .</p>
  <p>I did another thing now</p>
  <p><code>sudo docker cp sample.txt 943395e93d1d:/app/sample.txt</code></p>
  <p>Now this also went successfully .</p>
  <p>My question : Will the sample.txt file continue to exist within the container even after I stop the container ? So that if I start it again the updated files are there .</p>
  <p>Because that means I don't build the docker file again and again but just copy the files if there are changes in some assets of my application ?</p>