From cd97ac0fc13e7d72d4df4203ff7634c8f4d698df Mon Sep 17 00:00:00 2001 From: Iaroslav Sheptykin Date: Mon, 20 Sep 2021 20:13:50 +0200 Subject: [PATCH] Explain `--filter` in `ps` Explain `--filter` option of compse `ps` in more detail. Signed-off-by: Iaroslav Sheptykin --- compose/cli/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compose/cli/main.py b/compose/cli/main.py index fabd6087b..25a2de883 100644 --- a/compose/cli/main.py +++ b/compose/cli/main.py @@ -778,7 +778,9 @@ class TopLevelCommand: Options: -q, --quiet Only display IDs --services Display services - --filter KEY=VAL Filter services by a property + --filter KEY=VAL Filter services by a property. KEY is either: + 1. `source` with values `image`, or `build`; + 2. `status` with values `running`, `stopped`, `paused`, or `restarted`. -a, --all Show all stopped containers (including those created by the run command) """ if options['--quiet'] and options['--services']: