diff --git a/cli/command/system/inspect.go b/cli/command/system/inspect.go index ea1cb0aca5..389edf148a 100644 --- a/cli/command/system/inspect.go +++ b/cli/command/system/inspect.go @@ -77,7 +77,7 @@ func NewInspectCommand(dockerCli command.Cli) *cobra.Command { flags := cmd.Flags() flags.StringVarP(&opts.format, "format", "f", "", flagsHelper.InspectFormatHelp) - flags.StringVar(&opts.objectType, "type", "", "Return JSON for specified type") + flags.StringVar(&opts.objectType, "type", "", "Only inspect objects of the given type") flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container") _ = cmd.RegisterFlagCompletionFunc("type", completion.FromList(allTypes...)) diff --git a/docs/reference/commandline/inspect.md b/docs/reference/commandline/inspect.md index b566c5ae4d..f8d2849766 100644 --- a/docs/reference/commandline/inspect.md +++ b/docs/reference/commandline/inspect.md @@ -9,7 +9,7 @@ Return low-level information on Docker objects |:---------------------------------------|:---------|:--------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [`-f`](#format), [`--format`](#format) | `string` | | Format output using a custom template:
'json': Print in JSON format
'TEMPLATE': Print output using the given Go template.
Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates | | [`-s`](#size), [`--size`](#size) | `bool` | | Display total file sizes if the type is container | -| [`--type`](#type) | `string` | | Return JSON for specified type | +| [`--type`](#type) | `string` | | Only inspect objects of the given type |