Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
shimv2: fix the issue of passing the wrong container id
Browse files Browse the repository at this point in the history
It should pass the container id instead of sandbox id.

Fixes:#1672

Signed-off-by: lifupan <[email protected]>
  • Loading branch information
lifupan committed May 21, 2019
1 parent 100db8a commit 5e1f5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containerd-shim-v2/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e1f5ca

Please sign in to comment.