mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
We don't need image layer stream when create the rootfs
Signed-off-by: Hu Keping <hukeping@huawei.com>
This commit is contained in:
parent
104d30f946
commit
f70c592137
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ func (graph *Graph) Register(img *image.Image, layerData io.Reader) (err error)
|
|||
}
|
||||
|
||||
// Create root filesystem in the driver
|
||||
if err := createRootFilesystemInDriver(graph, img, layerData); err != nil {
|
||||
if err := createRootFilesystemInDriver(graph, img); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -286,7 +286,7 @@ func (graph *Graph) Register(img *image.Image, layerData io.Reader) (err error)
|
|||
return nil
|
||||
}
|
||||
|
||||
func createRootFilesystemInDriver(graph *Graph, img *image.Image, layerData io.Reader) error {
|
||||
func createRootFilesystemInDriver(graph *Graph, img *image.Image) error {
|
||||
if err := graph.driver.Create(img.ID, img.Parent); err != nil {
|
||||
return fmt.Errorf("Driver %s failed to create image rootfs %s: %s", graph.driver, img.ID, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue