Keep stdin open instead of opening when use it.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-11-09 09:28:30 +00:00
parent 2433ae7539
commit c4931c8409
4 changed files with 23 additions and 30 deletions

View File

@@ -175,7 +175,7 @@ func (c *criContainerdService) CreateContainer(ctx context.Context, r *runtime.C
}
containerIO, err := cio.NewContainerIO(id,
cio.WithStdin(config.GetStdin()),
cio.WithStdinOpen(config.GetStdin()),
cio.WithTerminal(config.GetTty()),
cio.WithRootDir(containerRootDir),
)