title: Run inline command with pipe in docker container
body: <p>I want to run a set of commands in a docker container, e.g.:</p>
  
  <pre><code>docker run -i &lt;image&gt; cmd1 | cmd2
  </code></pre>
  
  <p>Both <code>cmd1</code> and <code>cmd2</code> should be run inside the container.</p>
  
  <p>Is it possible? If not, what are the alternatives?</p>