Windows cmd docker command piping

Viewed 2704

I found this instruction on piping commands in Windows CMD:

The "pipe" redirects the output of a program or command to a second program or command.

Syntax:

Command1 | Command2

[Source] (at the very bottom)

Yet docker ps -aq | docker start or any similar combination just returns errors.

The only working combination to start all stopped container works in PowerShell.

docker start $(docker ps -a -q -f "status=exited")
1 Answers
Related