Fixes containerd-shim-runhcs Delete on exec id
@@ -486,14 +486,16 @@ func (s *service) Delete(ctx context.Context, r *taskAPI.DeleteRequest) (*taskAP
return nil, err
}
+ // This is a container
+ if p.cid == p.id {
rhs := newRunhcs(p.bundle)
-
dopts := &runhcs.DeleteOpts{
Force: true,
}
if err := rhs.Delete(ctx, p.id, dopts); err != nil {
return nil, errors.Wrapf(err, "failed to delete container: %s", p.id)
}
+ }
select {
case <-time.After(5 * time.Second):
