How to redirect docker container logs to a single file?
<p>I want to redirect all the logs of my docker container to single log file to analyse them. I tried </p>

<pre><code>docker logs container &gt; /tmp/stdout.log 2&gt;/tmp/stderr.log
</code></pre>

<p>but this gives log in two different file. I already tried </p>

<pre><code>docker logs container &gt; /tmp/stdout.log
</code></pre>

<p>but it did not work.</p>