From b72db8b82c90753702b354535400439993c9f915 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 11 Oct 2018 13:19:36 +0200 Subject: [PATCH] Skip deprecated storage-drivers in auto-selection Discourage users from using deprecated storage-drivers by skipping them when automatically selecting a storage- driver. This change does not affect existing installations, because existing state will take precedence. Users can still use deprecated drivers by manually configuring the daemon to use a specific driver. Signed-off-by: Sebastiaan van Stijn --- daemon/graphdriver/driver.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/graphdriver/driver.go b/daemon/graphdriver/driver.go index 2db61aac49..109e00b3d8 100644 --- a/daemon/graphdriver/driver.go +++ b/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 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) if err != nil { if IsDriverNotSupported(err) {