Merge pull request #34204 from jpetazzo/log-docker-driver-env

Add a log message when storage driver is overriden through environment
This commit is contained in:
Sebastiaan van Stijn 2017-07-20 21:16:06 +02:00 committed by GitHub
commit 2b964164c2
1 changed files with 2 additions and 0 deletions

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.
}