Merge pull request #18984 from coolljt0725/fix_daemon_start

Fix daemon failed to start with error "layer does not exist"
This commit is contained in:
Sebastiaan van Stijn 2015-12-30 16:52:41 +01:00
commit 9860effc4e

View file

@ -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,