Also unpack image during creation.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-10-25 20:42:32 +00:00
parent 8fb63c5664
commit acc3f74d5c
5 changed files with 43 additions and 5 deletions

View File

@@ -391,7 +391,7 @@ func loadImages(ctx context.Context, cImages []containerd.Image, provider conten
// Checking existence of top-level snapshot for each image being recovered.
if _, err := snapshotter.Stat(ctx, image.ChainID); err != nil {
glog.Warningf("Failed to stat the top-level snapshot for image %+v: %v", image, err)
continue
// TODO(random-liu): Consider whether we should try unpack here.
}
images = append(images, image)
}