From 64c1b6d9cd16b7d4cc8ebda2de82bc76e0c99f43 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Tue, 9 Apr 2013 08:18:16 -0700 Subject: [PATCH] Change the behaviour of CmdRun in tty mode: dont kill the process uppon detach --- container.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/container.go b/container.go index 6b3913522c..34ca696ed8 100644 --- a/container.go +++ b/container.go @@ -250,10 +250,7 @@ func (container *Container) Attach(stdin io.ReadCloser, stdinCloser io.Closer, s if cStderr != nil { defer cStderr.Close() } - if container.Config.StdinOnce { - if container.Config.Tty { - defer container.Kill() - } + if container.Config.StdinOnce && !container.Config.Tty { defer cStdin.Close() } _, err := io.Copy(cStdin, stdin)