Add a log message when the storage driver is overriden through the environment

Signed-off-by: Jérôme Petazzoni <jerome.petazzoni@gmail.com>
Upstream-commit: 84aefe869786f48151e76504746d576e6d377d79
Component: engine
This commit is contained in:
Jérôme Petazzoni
2017-07-20 17:38:34 +02:00
parent 0e1ec67528
commit 43848053b0
+2
View File
@@ -620,6 +620,8 @@ func NewDaemon(config *config.Config, registryService registry.Service, containe
driverName := os.Getenv("DOCKER_DRIVER")
if driverName == "" {
driverName = config.GraphDriver
} else {
logrus.Infof("Setting the storage driver from the $DOCKER_DRIVER environment variable (%s)", driverName)
}
d.stores[runtime.GOOS] = daemonStore{graphDriver: driverName} // May still be empty. Layerstore init determines instead.
}