From 1685e48b035b47c16fe42908fead96a5173752bd Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Tue, 8 Nov 2016 18:48:48 -0800 Subject: [PATCH] Increase timeout for local store client Signed-off-by: Alessandro Boch --- libnetwork/datastore/datastore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libnetwork/datastore/datastore.go b/libnetwork/datastore/datastore.go index fa6942d837..d7c17b5531 100644 --- a/libnetwork/datastore/datastore.go +++ b/libnetwork/datastore/datastore.go @@ -6,6 +6,7 @@ import ( "reflect" "strings" "sync" + "time" "github.com/docker/libkv" "github.com/docker/libkv/store" @@ -134,7 +135,8 @@ func makeDefaultScopes() map[string]*ScopeCfg { Provider: string(store.BOLTDB), Address: defaultPrefix + "/local-kv.db", Config: &store.Config{ - Bucket: "libnetwork", + Bucket: "libnetwork", + ConnectionTimeout: time.Minute, }, }, }