As is raised in 26312, in `docker network ls`, the help output was
mistaken to `volume names`:
```
-q, --quiet Only display volume names
```
This fix changes the help output to:
```
-q, --quiet Only display network IDs
```
This fix also updates the documentation in:
`docs/reference/commandline/network_ls.md`
This fix fixes 26312.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
| ... | ... |
@@ -40,7 +40,7 @@ func newListCommand(dockerCli *client.DockerCli) *cobra.Command {
|
| 40 | 40 |
} |
| 41 | 41 |
|
| 42 | 42 |
flags := cmd.Flags() |
| 43 |
- flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display volume names") |
|
| 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 | 46 |
flags.StringSliceVarP(&opts.filter, "filter", "f", []string{}, "Provide filter values (i.e. 'dangling=true')")
|
| ... | ... |
@@ -23,7 +23,7 @@ Options: |
| 23 | 23 |
--format string Pretty-print networks using a Go template |
| 24 | 24 |
--help Print usage |
| 25 | 25 |
--no-trunc Do not truncate the output |
| 26 |
- -q, --quiet Only display volume names |
|
| 26 |
+ -q, --quiet Only display network IDs |
|
| 27 | 27 |
``` |
| 28 | 28 |
|
| 29 | 29 |
Lists all the networks the Engine `daemon` knows about. This includes the |