mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 02:07:38 +00:00
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:
@@ -12986,7 +12986,11 @@
|
||||
},
|
||||
"stdin": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this container should allocate a buffer for stdin in the container runtime. Default is false."
|
||||
"description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."
|
||||
},
|
||||
"stdinOnce": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"
|
||||
},
|
||||
"tty": {
|
||||
"type": "boolean",
|
||||
|
@@ -3537,7 +3537,11 @@
|
||||
},
|
||||
"stdin": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this container should allocate a buffer for stdin in the container runtime. Default is false."
|
||||
"description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."
|
||||
},
|
||||
"stdinOnce": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"
|
||||
},
|
||||
"tty": {
|
||||
"type": "boolean",
|
||||
|
Reference in New Issue
Block a user