From 5e1f5ca735d71670563970d97f89e4486c34fe48 Mon Sep 17 00:00:00 2001 From: lifupan Date: Tue, 21 May 2019 16:36:29 +0800 Subject: [PATCH] shimv2: fix the issue of passing the wrong container id It should pass the container id instead of sandbox id. Fixes:#1672 Signed-off-by: lifupan --- containerd-shim-v2/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containerd-shim-v2/service.go b/containerd-shim-v2/service.go index 383d7d1238..d479790e15 100644 --- a/containerd-shim-v2/service.go +++ b/containerd-shim-v2/service.go @@ -453,7 +453,7 @@ func (s *service) Delete(ctx context.Context, r *taskAPI.DeleteRequest) (_ *task } s.send(&eventstypes.TaskDelete{ - ContainerID: s.id, + ContainerID: c.id, Pid: s.pid, ExitStatus: c.exit, ExitedAt: c.exitTime,