title: How to disable Nginx caching when running Nginx using Docker
body: <p>I use the official nginx docker image (<a href="https://registry.hub.docker.com/_/nginx/" rel="nofollow">https://registry.hub.docker.com/_/nginx/</a>). When I modify the Index.html I don't see my change. Setting <code>sendfile off</code> in nginx.conf didn't help.</p>
  
  <p>I only see the change if i rebuild my image.</p>
  
  <p>Here is my Dockerfile:</p>
  
  <pre><code>FROM nginx
  COPY . /usr/share/nginx/html
  COPY nginx/nginx.conf /etc/nginx/nginx.conf
  COPY nginx/default.conf /etc/nginx/conf.d/default.conf
  </code></pre>
  
  <p>And that's the commands I use to build and run it:</p>
  
  <pre><code>docker build -t some-nginx .
  docker run --name app1 -p 80:80 -v $(pwd):/user/share/nginx/html -d some-nginx
  </code></pre>
  
  <p>Thank you</p>