From 7ebb7c738a7d8f461de64f90fb284ec7581babc2 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Wed, 17 Aug 2016 04:52:27 -0700 Subject: [PATCH] add -f to plugin inspect Signed-off-by: Victor Vieux Signed-off-by: Victor Vieux --- docs/reference/commandline/plugin_inspect.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/reference/commandline/plugin_inspect.md b/docs/reference/commandline/plugin_inspect.md index 17993d573b..ed90eafb15 100644 --- a/docs/reference/commandline/plugin_inspect.md +++ b/docs/reference/commandline/plugin_inspect.md @@ -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