Browse code

add documentation for desired_state filter

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 36f57f7d024e44b1db7f5cd0c24526f4cdfb7234)

Harald Albers authored on 2016/06/29 23:16:31
Showing 3 changed files
... ...
@@ -45,7 +45,6 @@ The currently supported filters are:
45 45
 * name
46 46
 * id
47 47
 * label
48
-* desired_state
49 48
 
50 49
 ### name
51 50
 
... ...
@@ -42,12 +42,12 @@ than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "b
42 42
 
43 43
 The currently supported filters are:
44 44
 
45
-* name
46
-* id
47
-* label
48
-* desired_state
45
+* [name](#name)
46
+* [id](#id)
47
+* [label](#label)
48
+* [desired_state](#desired_state)
49 49
 
50
-### name
50
+#### name
51 51
 
52 52
 The `name` filter matches on all or part of a task's name.
53 53
 
... ...
@@ -62,7 +62,7 @@ The following filter matches all tasks with a name containing the `redis` string
62 62
     0tgctg8h8cech4w0k0gwrmr23  redis.10  redis    redis:3.0.6  Running 5 seconds   Running        swarm-manager1
63 63
 
64 64
 
65
-### id
65
+#### id
66 66
 
67 67
 The `id` filter matches a task's id.
68 68
 
... ...
@@ -86,6 +86,11 @@ bg8c07zzg87di2mufeq51a2qp  redis.7  redis    redis:3.0.6  Running 9 minutes   Ru
86 86
 ```
87 87
 
88 88
 
89
+#### desired_state
90
+
91
+The `desired_state` filter can take the values `running` and `accepted`.
92
+
93
+
89 94
 ## Related information
90 95
 
91 96
 * [node inspect](node_inspect.md)
... ...
@@ -61,6 +61,7 @@ The currently supported filters are:
61 61
 
62 62
 * [id](#id)
63 63
 * [name](#name)
64
+* [desired_state](#desired_state)
64 65
 
65 66
 
66 67
 #### ID
... ...
@@ -85,6 +86,11 @@ ID                         NAME      SERVICE  IMAGE        DESIRED STATE  LAST S
85 85
 ```
86 86
 
87 87
 
88
+#### desired_state
89
+
90
+The `desired_state` filter can take the values `running` and `accepted`.
91
+
92
+
88 93
 ## Related information
89 94
 
90 95
 * [service create](service_create.md)