@@ -250,7 +250,7 @@ func (daemon *Daemon) restore() error {
250250 }
251251 // Ignore the container if it does not support the current driver being used by the graph
252252 if (c .Driver == "" && daemon .graphDriver == "aufs" ) || c .Driver == daemon .graphDriver {
253- rwlayer , err := daemon .imageService .GetLayerByID (c .ID , c . OS )
253+ rwlayer , err := daemon .imageService .GetLayerByID (c .ID )
254254 if err != nil {
255255 log .WithError (err ).Error ("failed to load container mount" )
256256 return
@@ -1003,10 +1003,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
10031003 return nil , err
10041004 }
10051005
1006- // TODO remove multiple imagestores map now that LCOW is no more
1007- imageStore , err := image .NewImageStore (ifs , map [string ]image.LayerGetReleaser {
1008- runtime .GOOS : layerStore ,
1009- })
1006+ imageStore , err := image .NewImageStore (ifs , layerStore )
10101007 if err != nil {
10111008 return nil , err
10121009 }
@@ -1084,7 +1081,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
10841081 DistributionMetadataStore : distributionMetadataStore ,
10851082 EventsService : d .EventsService ,
10861083 ImageStore : imageStore ,
1087- LayerStores : map [ string ]layer. Store { runtime . GOOS : layerStore }, // TODO remove multiple LayerStores map now that LCOW is no more
1084+ LayerStore : layerStore ,
10881085 MaxConcurrentDownloads : * config .MaxConcurrentDownloads ,
10891086 MaxConcurrentUploads : * config .MaxConcurrentUploads ,
10901087 MaxDownloadAttempts : * config .MaxDownloadAttempts ,
@@ -1231,7 +1228,7 @@ func (daemon *Daemon) Shutdown() error {
12311228 log .WithError (err ).Error ("failed to shut down container" )
12321229 return
12331230 }
1234- if mountid , err := daemon .imageService .GetLayerMountID (c .ID , c . OS ); err == nil {
1231+ if mountid , err := daemon .imageService .GetLayerMountID (c .ID ); err == nil {
12351232 daemon .cleanupMountsByID (mountid )
12361233 }
12371234 log .Debugf ("shut down container" )
@@ -1294,7 +1291,7 @@ func (daemon *Daemon) Mount(container *container.Container) error {
12941291 if runtime .GOOS != "windows" {
12951292 daemon .Unmount (container )
12961293 return fmt .Errorf ("Error: driver %s is returning inconsistent paths for container %s ('%s' then '%s')" ,
1297- daemon .imageService .GraphDriverForOS ( container . OS ), container .ID , container .BaseFS , dir )
1294+ daemon .imageService .GraphDriverName ( ), container .ID , container .BaseFS , dir )
12981295 }
12991296 }
13001297 container .BaseFS = dir // TODO: combine these fields
0 commit comments