Explain `--filter` in `ps`

Explain `--filter` option of compse `ps` in more detail.

Signed-off-by: Iaroslav Sheptykin <i.sheptykin@neusta.de>
This commit is contained in:
Iaroslav Sheptykin 2021-09-20 20:13:50 +02:00 committed by Iaroslav Sheptykin
parent 2011bc3cea
commit cd97ac0fc1
1 changed files with 3 additions and 1 deletions

View File

@ -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']: