瀏覽代碼

Explain `--filter` in `ps`

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

Signed-off-by: Iaroslav Sheptykin <[email protected]>
Iaroslav Sheptykin 4 年之前
父節點
當前提交
cd97ac0fc1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      compose/cli/main.py

+ 3 - 1
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']: