mirror of
https://github.com/moby/buildkit.git
synced 2026-08-05 23:30:22 +00:00
Merge pull request #1007 from tonistiigi/overlay-async
buildkitd: use asyncremove on overlay
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user