pkg/sysregistries/system_registries.go
func GetRegistries(sys *types.SystemContext) ([]string, error) {
	config, err := loadRegistryConf(sys)
	if err != nil {
		return nil, err
	}
	return config.Registries.Search.Registries, nil
}
func GetRegistries(sys *types.SystemContext) ([]string, error) {
	config, err := loadRegistryConf(sys)
	if err != nil {
		return nil, err
	}
	return config.Registries.Search.Registries, nil
}
// GetRegistries returns an array of strings that contain the names
// of the registries as defined in the system-wide
// registries file.  it returns an empty array if none are
// defined