Browse Source

Merge pull request #38790 from nakabonne/refactor-setting-graph-driver

Refactor setting graph driver name
Sebastiaan van Stijn 6 năm trước cách đây
mục cha
commit
8df160dde7
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      daemon/daemon.go

+ 2 - 4
daemon/daemon.go

@@ -922,11 +922,9 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
 		if err != nil {
 		if err != nil {
 			return nil, err
 			return nil, err
 		}
 		}
-	}
 
 
-	// As layerstore initialization may set the driver
-	for os := range d.graphDrivers {
-		d.graphDrivers[os] = layerStores[os].DriverName()
+		// As layerstore initialization may set the driver
+		d.graphDrivers[operatingSystem] = layerStores[operatingSystem].DriverName()
 	}
 	}
 
 
 	// Configure and validate the kernels security support. Note this is a Linux/FreeBSD
 	// Configure and validate the kernels security support. Note this is a Linux/FreeBSD