Преглед изворни кода

Merge pull request #38019 from thaJeztah/skip_deprecated_drivers_in_autoselect

Skip deprecated storage-drivers in auto-selection
Yong Tang пре 6 година
родитељ
комит
9d4ac4b8d2
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      daemon/graphdriver/driver.go

+ 5 - 0
daemon/graphdriver/driver.go

@@ -253,6 +253,11 @@ func New(name string, pg plugingetter.PluginGetter, config Options) (Driver, err
 
 
 	// Check all registered drivers if no priority driver is found
 	// Check all registered drivers if no priority driver is found
 	for name, initFunc := range drivers {
 	for name, initFunc := range drivers {
+		if isDeprecated(name) {
+			// Deprecated storage-drivers are skipped in automatic selection, but
+			// can be selected through configuration.
+			continue
+		}
 		driver, err := initFunc(filepath.Join(config.Root, name), config.DriverOptions, config.UIDMaps, config.GIDMaps)
 		driver, err := initFunc(filepath.Join(config.Root, name), config.DriverOptions, config.UIDMaps, config.GIDMaps)
 		if err != nil {
 		if err != nil {
 			if IsDriverNotSupported(err) {
 			if IsDriverNotSupported(err) {