mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make sure that the layer exists prior to store it
This commit is contained in:
parent
edc7c092d9
commit
be9dd7b85f
1 changed files with 1 additions and 1 deletions
2
graph.go
2
graph.go
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue