diff --git a/internal/oci/runtime_vm.go b/internal/oci/runtime_vm.go index 2cebd602e1d..23ee03feac0 100644 --- a/internal/oci/runtime_vm.go +++ b/internal/oci/runtime_vm.go @@ -537,7 +537,7 @@ func (r *runtimeVM) DeleteContainer(c *Container) error { return err } - if _, err := r.task.Shutdown(r.ctx, &task.ShutdownRequest{ID: c.ID()}); err != nil { + if _, err := r.task.Shutdown(r.ctx, &task.ShutdownRequest{ID: c.ID()}); err != nil && !errors.Is(err, ttrpc.ErrClosed) { return err }