Support stdinOnce, which allows run-once STDIN injection

This allows containers to wait for input before startup by listening
on STDIN, and after STDIN is closed, continue running. Matches the
Docker syntax.
This commit is contained in:
Clayton Coleman
2015-10-03 16:38:49 -04:00
parent b255e7c478
commit e929baf91a
12 changed files with 34 additions and 6 deletions

View File

@@ -238,6 +238,7 @@ func deepCopy_api_Container(in Container, out *Container, c *conversion.Cloner)
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.StdinOnce = in.StdinOnce
out.TTY = in.TTY
return nil
}