title: How do I turn sendfile off in a docker instance
body: <p>I have a nginx docker instance running. In the docker instance there is a file called
  <code>/etc/nginx/nginx.conf</code></p>
  
  <p>It has the following settings</p>
  
  <pre><code>http {
      include       /etc/nginx/mime.types;
      default_type  application/octet-stream;
  
      log_format  main  '$remote_addr - $remote_user [$time_local] "$request" 
  
      access_log  /var/log/nginx/access.log  main;
  
      sendfile        on;
      ....
  }
  </code></pre>
  
  <p>I run the docker instance by running with the following command.</p>
  
  <pre><code>docker run -d -P -v /Users/user/site:/usr/share/nginx/html --name mysite nginx
  </code></pre>
  
  <p>How would I run the above command but have it change the config setting to turn off sendfile?</p>
  
  <p>This <a href="https://stackoverflow.com/questions/28273341/how-to-disable-nginx-caching-when-running-nginx-using-docker">answer looks similar to mine</a>.  Would I need to create a build file?  Im a bit confused.</p>