我在Windows CMD中发现了有关管道命令的指示:
The "pipe" redirects the output of a program or command to a second program or command.
Syntax:
Command1 | Command2
[来源](在底部)
然而,docker ps -aq | docker start
或任何类似的组合只会返回错误。
唯一有效的启动所有停止容器的组合在PowerShell中有效。
docker start $(docker ps -a -q -f "status=exited")