daemon: NewDaemon() fix import colliding with local variable
@@ -32,7 +32,7 @@ import (
"github.com/docker/docker/daemon/events"
_ "github.com/docker/docker/daemon/graphdriver/register" // register graph drivers
"github.com/docker/docker/daemon/images"
- "github.com/docker/docker/daemon/logger"
+ dlogger "github.com/docker/docker/daemon/logger"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/daemon/stats"
dmetadata "github.com/docker/docker/distribution/metadata"
@@ -837,7 +837,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
}
d.registryService = registryService
- logger.RegisterPluginGetter(d.PluginStore)
+ dlogger.RegisterPluginGetter(d.PluginStore)
metricsSockPath, err := d.listenMetricsSock()
if err != nil {
