1
0
Fork 0
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:
Hu Keping 2015-09-09 20:30:16 +08:00
parent 104d30f946
commit f70c592137

View file

@ -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)
}