From c4846745d64bdc287b27d597fabc1e4fb876d6f8 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Sat, 9 Sep 2017 03:59:44 +0000 Subject: [PATCH] Use `WithNewSnapshot` for sandbox container. Signed-off-by: Lantao Liu --- pkg/server/sandbox_run.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/server/sandbox_run.go b/pkg/server/sandbox_run.go index 833188eae..07000fc77 100644 --- a/pkg/server/sandbox_run.go +++ b/pkg/server/sandbox_run.go @@ -132,10 +132,7 @@ func (c *criContainerdService) RunPodSandbox(ctx context.Context, r *runtime.Run } opts := []containerd.NewContainerOpts{ containerd.WithSnapshotter(c.snapshotter), - // A pure ro rootfs view is OK for the sandbox since - // we will never need to modify it or mount anything - // in it. - containerd.WithNewSnapshotView(id, image.Image), + containerd.WithNewSnapshot(id, image.Image), containerd.WithSpec(spec, specOpts...), containerd.WithContainerLabels(labels), containerd.WithRuntime(defaultRuntime, nil)}