Browse code

Update docs of `docker network ls --filter`

Currently the help output of `docker network ls --filter` is:
```
Options:
-f, --filter value Provide filter values (i.e. 'dangling=true') (default [])
...
```
This caused confusion as only the following filters are supported at the moment:
- `driver`
- `type`
- `name`
- `id`
- `label`

This fix update the help output of `docker network ls --filter` and `network_ls.md`.
The `dangling=true` description has been replace to:
```
Options:
-f, --filter filter Provide filter values (i.e. 'driver=bridge')
...
```

This fix fixes 28786.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit 2510f254eea58788c1a98987db35294beb839bb4)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>

Yong Tang authored on 2016/11/24 16:39:14
Showing 2 changed files
... ...
@@ -43,7 +43,7 @@ func newListCommand(dockerCli *command.DockerCli) *cobra.Command {
43 43
 	flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display network IDs")
44 44
 	flags.BoolVar(&opts.noTrunc, "no-trunc", false, "Do not truncate the output")
45 45
 	flags.StringVar(&opts.format, "format", "", "Pretty-print networks using a Go template")
46
-	flags.VarP(&opts.filter, "filter", "f", "Provide filter values (i.e. 'dangling=true')")
46
+	flags.VarP(&opts.filter, "filter", "f", "Provide filter values (e.g. 'driver=bridge')")
47 47
 
48 48
 	return cmd
49 49
 }
... ...
@@ -24,11 +24,11 @@ Aliases:
24 24
   ls, list
25 25
 
26 26
 Options:
27
-  -f, --filter value   Provide filter values (i.e. 'dangling=true') (default [])
28
-      --format string  Pretty-print networks using a Go template
29
-      --help           Print usage
30
-      --no-trunc       Do not truncate the output
31
-  -q, --quiet          Only display network IDs
27
+  -f, --filter filter   Provide filter values (e.g. 'driver=bridge')
28
+      --format string   Pretty-print networks using a Go template
29
+      --help            Print usage
30
+      --no-trunc        Do not truncate the output
31
+  -q, --quiet           Only display network IDs
32 32
 ```
33 33
 
34 34
 Lists all the networks the Engine `daemon` knows about. This includes the