add filter for containerd event

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
yason
2018-01-29 19:50:58 +08:00
committed by yanxuean
parent 8d2d125d82
commit 6931a69881
2 changed files with 8 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ func (c *criContainerdService) ContainerStatus(ctx context.Context, r *runtime.C
// * ImageSpec in container config is image ID.
// * ImageSpec in container status is image tag.
// * ImageRef in container status is repo digest.
spec := container.Metadata.Config.GetImage()
spec := container.Config.GetImage()
imageRef := container.ImageRef
image, err := c.imageStore.Get(imageRef)
if err != nil {