code: func NewVersionCommand(dockerCli command.Cli) *cobra.Command {
  	var opts versionOptions
  
  	cmd := &cobra.Command{
  		Use:   "version [OPTIONS]",
  		Short: "Show the Docker version information",
  		Args:  cli.NoArgs,
  		RunE: func(cmd *cobra.Command, args []string) error {
  			return runVersion(dockerCli, &opts)
  		},
  	}
  
  	flags := cmd.Flags()
  	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
  	flags.StringVar(&opts.kubeConfig, "kubeconfig", "", "Kubernetes config file")
  	flags.SetAnnotation("kubeconfig", "kubernetes", nil)
  
  	return cmd
  }
docs: // NewVersionCommand creates a new cobra.Command for `docker version`