Merge pull request #863 from wking/console-size-if-attached

config: Explicily make consoleSize unspecified if terminal is false or unset
This commit is contained in:
Michael Crosby 2017-06-01 14:54:06 -07:00 committed by GitHub
commit 239c4e44f2
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ For Linux and Solaris based systems the mounts structure has the following field
* **`terminal`** (bool, OPTIONAL) specifies whether a terminal is attached to that process, defaults to false.
As an example, if set to true on Linux a pseudoterminal pair is allocated for the container process and the pseudoterminal slave is duplicated on the container process's [standard streams][stdin.3].
* **`consoleSize`** (object, OPTIONAL) specifies the console size in characters of the terminal if attached, containing the following properties:
* **`consoleSize`** (object, OPTIONAL) specifies the console size in characters of the terminal.
Runtimes MUST ignore `consoleSize` if `terminal` is `false` or unset.
* **`height`** (uint, REQUIRED)
* **`width`** (uint, REQUIRED)
* **`cwd`** (string, REQUIRED) is the working directory that will be set for the executable.