title: Nginx logs in both file as well as docker log collector
body: <p>I am deploying a <code>Nginx</code> container and in the standard <code>Dockerfile</code> logs are being redirected to container logs with these commands</p>
  
  <pre><code>RUN ln -sf /dev/stdout /var/log/nginx/access.log \
      &amp;&amp; ln -sf /dev/stderr /var/log/nginx/error.log
  </code></pre>
  
  <p>If I remove above mentioned commands then logs are written to <code>access.log</code> and <code>error.log</code> files as expected.
  How can I keep the logs in the files as well as send them to container logs ?</p>