title: Is "docker logs container-id | tail -10" a valid command?
body: <p>I'm running the command <code>docker logs &lt;container-id&gt; | tail -10</code> and still, docker shows the entire log history. I know <code>docker logs --tail 10 &lt;container-id&gt;</code> is a valid command and serves the purpose. But, why doesn't the former command works as it does in case of a file?</p>