title: Docker and Volumes nocopy
body: <p>I want to mount a directory from my host to a Docker container, and I want to make some modifications inside the container. But, when I modify the content on the mounted point, the changes are also reflected on the host.</p>
  
  <p>For example:</p>
  
  <pre><code>$ docker run -d --name webserver01 -v /home/guest/app:/app
  </code></pre>
  
  <p>After which I made some change inside the container in /app</p>
  
  <pre><code>$ docker exec -ti webserver01 'touch /app/test.txt'
  </code></pre>
  
  <p>The file test.txt is created on my host and inside the container (the idea is to only create the file inside the container)</p>
  
  <p>I tried to use the flag <code>nocopy</code> but I have this error:</p>
  
  <pre><code>$ docker run -d --name webserver01 -v /home/guest/app:/app:nocopy
  docker: Error response from daemon: Invalid bind mount spec "/home/guest/app:/app:nocopy": invalid mode: nocopy.
  </code></pre>
  
  <p>Docker version</p>
  
  <pre><code>$ docker --version
  Docker version 1.11.1, build 5604cbe/1.11.1
  </code></pre>
  
  <p>Thanks for the help!</p>