From 009bc2089ddf7acc6e02e87a8e10519b20dde2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Fri, 13 Oct 2017 19:54:21 +0200 Subject: [PATCH] Backport #91 --- docs/nodeinfo.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/nodeinfo.md b/docs/nodeinfo.md index e43352d5..43de77a3 100644 --- a/docs/nodeinfo.md +++ b/docs/nodeinfo.md @@ -1,5 +1,3 @@ -class: node-info - ## Getting task information for a given node - You can see all the tasks assigned to a node with `docker node ps` @@ -10,4 +8,11 @@ class: node-info - `docker node ps ` shows info for another node -- `docker node ps -a` includes stopped and failed tasks +- `docker node ps -f ` allows to select which tasks to show + + ```bash + # Show only tasks that are supposed to be running + docker node ps -f desired-state=running + # Show only tasks whose name contains the string "front" + docker node ps -f name=front + ```