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

@@ -794,8 +794,9 @@ type Container struct {
// Variables for interactive containers, these have very specialized use-cases (e.g. debugging)
// and shouldn't be used for general purpose containers.
Stdin bool `json:"stdin,omitempty"`
TTY bool `json:"tty,omitempty"`
Stdin bool `json:"stdin,omitempty"`
StdinOnce bool `json:"stdinOnce,omitempty"`
TTY bool `json:"tty,omitempty"`
}
// Handler defines a specific action that should be taken