diff --git a/internal/oci/runtime_vm.go b/internal/oci/runtime_vm.go index 1cdf52362f3..f0d057cf901 100644 --- a/internal/oci/runtime_vm.go +++ b/internal/oci/runtime_vm.go @@ -361,7 +361,9 @@ func (r *runtimeVM) execContainerCommon(c *Container, cmd []string, timeout int6 Tty: tty, StdinOnce: true, CloseStdin: func() error { - <-closeIOChan + if closeIOChan != nil { + <-closeIOChan + } return r.closeIO(ctx, c.ID(), execID) }, })