Make sure that the layer exists prior to store it
Upstream-commit: be9dd7b85f889e31fbd93465535b9962ed585ced Component: engine
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user