diff --git a/linux/shim/io.go b/linux/shim/io.go index 66b79398d..49ba8e069 100644 --- a/linux/shim/io.go +++ b/linux/shim/io.go @@ -83,6 +83,7 @@ func copyPipes(ctx context.Context, rio runc.IO, stdin, stdout, stderr string, w dest(fw, fr) } if stdin == "" { + rio.Stdin().Close() return nil } f, err := fifo.OpenFifo(ctx, stdin, syscall.O_RDONLY, 0)