Skip to content

Commit

Permalink
Merge pull request #232 from Random-Liu/fix-rootfs
Browse files Browse the repository at this point in the history
Use `WithNewSnapshot` for sandbox container.
  • Loading branch information
Random-Liu committed Sep 9, 2017
2 parents a86526a + c484674 commit 159fa90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/server/sandbox_run.go
Expand Up @@ -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)}
Expand Down

0 comments on commit 159fa90

Please sign in to comment.