diff --git a/libnetwork/datastore/datastore.go b/libnetwork/datastore/datastore.go index e88badc0c310440601dd9ae9dc4ac6fc26ee708b..f413f9360030e3da1180b1b657353800dfd94ca5 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.