Skip to content

Commit

Permalink
Merge pull request #1007 from tonistiigi/overlay-async
Browse files Browse the repository at this point in the history
buildkitd: use asyncremove on overlay
  • Loading branch information
tiborvass authored May 22, 2019
2 parents 321197f + bffb08a commit 32918be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/buildkitd/main_oci_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32918be

Please sign in to comment.