summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 8e7ba8123..c7000d84a 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -555,6 +555,11 @@ func makeRuntime(runtime *Runtime) (err error) {
// Reset defaults if they were not explicitly set
if !runtime.configuredFrom.storageGraphDriverSet && dbConfig.GraphDriver != "" {
+ if runtime.config.StorageConfig.GraphDriverName != dbConfig.GraphDriver &&
+ runtime.config.StorageConfig.GraphDriverName != "" {
+ logrus.Errorf("User-selected graph driver %s overwritten by graph driver %s from database - delete libpod local files to resolve",
+ runtime.config.StorageConfig.GraphDriverName, dbConfig.GraphDriver)
+ }
runtime.config.StorageConfig.GraphDriverName = dbConfig.GraphDriver
}
if !runtime.configuredFrom.storageGraphRootSet && dbConfig.StorageRoot != "" {