From bffb08a1c4b904c605d0c65e4fe453052bdec9ad Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 14 May 2019 14:35:13 -0700 Subject: [PATCH] buildkitd: use asyncremove on overlay Signed-off-by: Tonis Tiigi --- cmd/buildkitd/main_oci_worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/buildkitd/main_oci_worker.go b/cmd/buildkitd/main_oci_worker.go index 7e71567c6..d86d491d5 100644 --- a/cmd/buildkitd/main_oci_worker.go +++ b/cmd/buildkitd/main_oci_worker.go @@ -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)