How to clean Docker container logs?
<p>I read my Docker container log output using </p>

<pre><code>docker logs -f &lt;container_name&gt;
</code></pre>

<p>I log lots of data to the log in my node.js app via calls to <code>console.log()</code>. I need to clean the log, because it's gotten too long and the <code>docker logs</code> command first runs through the existing lines of the log before getting to the end. How do I clean it to make it short again? I'd like to see a command like:</p>

<pre><code>docker logs clean &lt;container_name&gt;
</code></pre>

<p>But it doesn't seem to exist.</p>