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 2dfebf565..f390824dc 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -511,6 +511,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 != "" {