Merge pull request #1007 from tonistiigi/overlay-async

buildkitd: use asyncremove on overlay
This commit is contained in:
Tibor Vass
2019-05-22 11:28:52 -07:00
committed by GitHub

View File

@@ -231,7 +231,7 @@ func snapshotterFactory(commonRoot, name string) (runc.SnapshotterFactory, error
snFactory.New = native.NewSnapshotter
case "overlayfs": // not "overlay", for consistency with containerd snapshotter plugin ID.
snFactory.New = func(root string) (ctdsnapshot.Snapshotter, error) {
return overlay.NewSnapshotter(root)
return overlay.NewSnapshotter(root, overlay.AsynchronousRemove)
}
default:
return snFactory, errors.Errorf("unknown snapshotter name: %q", name)