code: func (commonOpts *CommonOptions) SetDefaultOptions(flags *pflag.FlagSet) {
  	// Regardless of whether the user sets it to true or false, if they
  	// specify --tlsverify at all then we need to turn on TLS
  	// TLSVerify can be true even if not set due to DOCKER_TLS_VERIFY env var, so we need
  	// to check that here as well
  	if flags.Changed(FlagTLSVerify) || commonOpts.TLSVerify {
  		commonOpts.TLS = true
  	}
  
  	if !commonOpts.TLS {
  		commonOpts.TLSOptions = nil
  	} else {
  		tlsOptions := commonOpts.TLSOptions
  		tlsOptions.InsecureSkipVerify = !commonOpts.TLSVerify
  
  		// Reset CertFile and KeyFile to empty string if the user did not specify
  		// the respective flags and the respective default files were not found.
  		if !flags.Changed("tlscert") {
  			if _, err := os.Stat(tlsOptions.CertFile); os.IsNotExist(err) {
  				tlsOptions.CertFile = ""
  			}
  		}
  		if !flags.Changed("tlskey") {
  			if _, err := os.Stat(tlsOptions.KeyFile); os.IsNotExist(err) {
  				tlsOptions.KeyFile = ""
  			}
  		}
  	}
  }
docs: // SetDefaultOptions sets default values for options after flag parsing is
  // complete