1
0
mirror of https://github.com/docker/cli.git synced 2026-01-23 15:21:32 +03:00

Merge pull request #597 from dotcloud/589-volumes_crash-fix

- Runtime: Make sure that the layer exists prior to store it
Upstream-commit: 3491957e35603188303ab419d749bf67a60e1e9b
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-05-13 13:09:03 -07:00

View File

@@ -113,7 +113,7 @@ func (graph *Graph) Create(layerData Archive, container *Container, comment, aut
img.Container = container.Id
img.ContainerConfig = *container.Config
}
if err := graph.Register(layerData, true, img); err != nil {
if err := graph.Register(layerData, layerData != nil, img); err != nil {
return nil, err
}
go img.Checksum()