diff --git a/cli/command/system/version.go b/cli/command/system/version.go index 925cd4a0f3..c8a1471720 100644 --- a/cli/command/system/version.go +++ b/cli/command/system/version.go @@ -105,7 +105,7 @@ func NewVersionCommand(dockerCli command.Cli) *cobra.Command { flags := cmd.Flags() flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template") - flags.StringVarP(&opts.kubeConfig, "kubeconfig", "k", "", "Kubernetes config file") + flags.StringVar(&opts.kubeConfig, "kubeconfig", "", "Kubernetes config file") flags.SetAnnotation("kubeconfig", "kubernetes", nil) return cmd diff --git a/docs/reference/commandline/version.md b/docs/reference/commandline/version.md index db76221887..c138052b9c 100644 --- a/docs/reference/commandline/version.md +++ b/docs/reference/commandline/version.md @@ -23,7 +23,7 @@ Show the Docker version information Options: -f, --format string Format the output using the given Go template --help Print usage - -k, --kubeconfig string Kubernetes config file + --kubeconfig string Kubernetes config file ``` ## Description