Merge pull request #358 from Random-Liu/unpack-when-creation

Also unpack image during creation.
This commit is contained in:
Lantao Liu
2017-10-26 22:44:07 +02:00
committed by GitHub
5 changed files with 42 additions and 5 deletions

View File

@@ -144,6 +144,7 @@ func (c *criContainerdService) RunPodSandbox(ctx context.Context, r *runtime.Run
opts := []containerd.NewContainerOpts{
containerd.WithSnapshotter(c.config.ContainerdConfig.Snapshotter),
customopts.WithImageUnpack(image.Image),
containerd.WithNewSnapshot(id, image.Image),
containerd.WithSpec(spec, specOpts...),
containerd.WithContainerLabels(map[string]string{containerKindLabel: containerKindSandbox}),