code: func (daemon *Daemon) reloadInsecureRegistries(conf *config.Config, attributes map[string]string) error {
  	// update corresponding configuration
  	if conf.IsValueSet("insecure-registries") {
  		daemon.configStore.InsecureRegistries = conf.InsecureRegistries
  		if err := daemon.RegistryService.LoadInsecureRegistries(conf.InsecureRegistries); err != nil {
  			return err
  		}
  	}
  
  	// prepare reload event attributes with updatable configurations
  	if daemon.configStore.InsecureRegistries != nil {
  		insecureRegistries, err := json.Marshal(daemon.configStore.InsecureRegistries)
  		if err != nil {
  			return err
  		}
  		attributes["insecure-registries"] = string(insecureRegistries)
  	} else {
  		attributes["insecure-registries"] = "[]"
  	}
  
  	return nil
  }
docs: // reloadInsecureRegistries updates configuration with insecure registry option
  // and updates the passed attributes