Check and dump rootfs.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-12-03 11:28:46 +00:00
parent cad87243e1
commit a23bdf25d8
4 changed files with 196 additions and 0 deletions

View File

@@ -153,6 +153,11 @@ func (c *criContainerdService) PullImage(ctx context.Context, r *runtime.PullIma
return nil, fmt.Errorf("failed to add image %q into store: %v", img.ID, err)
}
glog.V(0).Infof("Check image after pull image %q", imageID)
if err := c.checkImage(ctx, imageID, "", nil, false); err != nil {
glog.Errorf("Failed to check image %q: %v", imageID, err)
}
// NOTE(random-liu): the actual state in containerd is the source of truth, even we maintain
// in-memory image store, it's only for in-memory indexing. The image could be removed
// by someone else anytime, before/during/after we create the metadata. We should always