浏览代码

Merge pull request #9510 from crosbymichael/chrootarchive

Use consistent ApplyLayer in overlayfs
Michael Crosby 10 年之前
父节点
当前提交
6e7a210db6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      daemon/graphdriver/overlay/overlay.go

+ 2 - 1
daemon/graphdriver/overlay/overlay.go

@@ -15,6 +15,7 @@ import (
 	log "github.com/Sirupsen/logrus"
 	log "github.com/Sirupsen/logrus"
 	"github.com/docker/docker/daemon/graphdriver"
 	"github.com/docker/docker/daemon/graphdriver"
 	"github.com/docker/docker/pkg/archive"
 	"github.com/docker/docker/pkg/archive"
+	"github.com/docker/docker/pkg/chrootarchive"
 	"github.com/docker/libcontainer/label"
 	"github.com/docker/libcontainer/label"
 )
 )
 
 
@@ -346,7 +347,7 @@ func (d *Driver) ApplyDiff(id string, parent string, diff archive.ArchiveReader)
 		return 0, err
 		return 0, err
 	}
 	}
 
 
-	if err := archive.ApplyLayer(tmpRootDir, diff); err != nil {
+	if err := chrootarchive.ApplyLayer(tmpRootDir, diff); err != nil {
 		return 0, err
 		return 0, err
 	}
 	}