Merge pull request #1162 from Random-Liu/fix-image-pull

Add cri managed image label when pulling the image.
This commit is contained in:
Lantao Liu
2019-06-11 10:51:34 -07:00
committed by GitHub

View File

@@ -105,6 +105,7 @@ func (c *criService) PullImage(ctx context.Context, r *runtime.PullImageRequest)
containerd.WithResolver(resolver),
containerd.WithPullSnapshotter(c.config.ContainerdConfig.Snapshotter),
containerd.WithPullUnpack,
containerd.WithPullLabel(imageLabelKey, imageLabelValue),
)
if err != nil {
return nil, errors.Wrapf(err, "failed to pull and unpack image %q", ref)