From c64119dd87cd3a46a5c7cfc0d95b9c7547a92e6e 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 Upstream-commit: 72d3d1ef856e2b3af78cccf463be5a9be823997b Component: engine --- components/engine/daemon/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/daemon.go b/components/engine/daemon/daemon.go index 0f47e74174..70633debba 100644 --- a/components/engine/daemon/daemon.go +++ b/components/engine/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,