From 72d3d1ef856e2b3af78cccf463be5a9be823997b Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Wed, 30 Dec 2015 14:18:12 +0800 Subject: [PATCH] Fix daemon failed to start with error "layer does not exist" Signed-off-by: Lei Jitang --- daemon/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/daemon.go b/daemon/daemon.go index 0f47e74174..70633debba 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -732,7 +732,7 @@ func NewDaemon(config *Config, registryService *registry.Service) (daemon *Daemo } d.layerStore, err = layer.NewStoreFromOptions(layer.StoreOptions{ StorePath: config.Root, - MetadataStorePathTemplate: filepath.Join(config.Root, "image", "%s"), + MetadataStorePathTemplate: filepath.Join(config.Root, "image", "%s", "layerdb"), GraphDriver: driverName, GraphDriverOptions: config.GraphOptions, UIDMaps: uidMaps,