title: Windows cmd docker command piping
body: <p>I found this instruction on piping commands in Windows CMD:</p>
  
  <blockquote>
    <p>The "pipe" redirects the output of a program or command to a second program or command.</p>
    
    <p>Syntax:</p>
  
  <pre><code>Command1 | Command2
  </code></pre>
  </blockquote>
  
  <p>[<a href="http://www.lagmonster.org/docs/DOS7/pipes.html" rel="nofollow noreferrer">Source</a>] (at the very bottom)</p>
  
  <p>Yet <code>docker ps -aq | docker start</code> or any similar combination just returns errors.</p>
  
  <p>The only working combination to start all stopped container works in PowerShell.</p>
  
  <pre><code>docker start $(docker ps -a -q -f "status=exited")
  </code></pre>