Skip to content

Commit 0fa739c

Browse files
author
John Howard
committed
Windows: Add initialConsoleSize to process
Signed-off-by: John Howard <[email protected]>
1 parent b3ce195 commit 0fa739c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
9595
**`process`** (object, required) configures the container process.
9696

9797
* **`terminal`** (bool, optional) specifies whether you want a terminal attached to that process, defaults to false.
98+
* **`initialConsoleSize`** (array of uints, optional) specifies the initial console size (height, width) of the terminal if attached.
9899
* **`cwd`** (string, required) is the working directory that will be set for the executable.
99100
This value MUST be an absolute path.
100101
* **`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution.
@@ -139,6 +140,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
139140
```json
140141
"process": {
141142
"terminal": true,
143+
"initialConsoleSize": [80, 25],
142144
"user": {
143145
"uid": 1,
144146
"gid": 1,
@@ -174,6 +176,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
174176
```json
175177
"process": {
176178
"terminal": true,
179+
"initialConsoleSize": [80, 25],
177180
"user": {
178181
"uid": 1,
179182
"gid": 1,

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type Spec struct {
3131
type Process struct {
3232
// Terminal creates an interactive terminal for the container.
3333
Terminal bool `json:"terminal,omitempty"`
34+
// InitialConsoleSize contains the initial h,w of the console.
35+
InitialConsoleSize [2]uint `json:"initialConsoleSize"`
3436
// User specifies user information for the process.
3537
User User `json:"user"`
3638
// Args specifies the binary and arguments for the application to execute.

0 commit comments

Comments
 (0)