add -f to plugin inspect

Signed-off-by: Victor Vieux <vieux@docker.com>

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2016-08-17 04:52:27 -07:00 committed by Tibor Vass
parent 2ff594515f
commit 7ebb7c738a
1 changed files with 9 additions and 1 deletions

View File

@ -17,7 +17,8 @@ Usage: docker plugin inspect PLUGIN
Inspect a plugin
Options:
--help Print usage
-f, --format string Format the output using the given go template
--help Print usage
```
Returns information about a plugin. By default, this command renders all results
@ -138,6 +139,13 @@ $ docker plugin inspect tiborvass/no-remove:latest
(output formatted for readability)
```bash
$ docker plugin inspect -f '{{.Id}}' tiborvass/no-remove:latest
```
```
8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21
```
## Related information