diff --git a/libnetwork/datastore/datastore.go b/libnetwork/datastore/datastore.go index e88badc0c3..f413f93600 100644 --- a/libnetwork/datastore/datastore.go +++ b/libnetwork/datastore/datastore.go @@ -154,13 +154,12 @@ var rootChain = defaultRootChain // DefaultScopes returns a map of default scopes and its config for clients to use. func DefaultScopes(dataDir string) map[string]*ScopeCfg { + s := makeDefaultScopes() if dataDir != "" { - defaultScopes[LocalScope].Client.Address = dataDir + "/network/files/local-kv.db" - return defaultScopes + s[LocalScope].Client.Address = dataDir + "/network/files/local-kv.db" } - defaultScopes[LocalScope].Client.Address = defaultPrefix + "/local-kv.db" - return defaultScopes + return s } // IsValid checks if the scope config has valid configuration.