Skip to content

Commit

Permalink
Windows: Add initialConsoleSize to process
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed Sep 17, 2016
1 parent b3ce195 commit dcf55f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
**`process`** (object, required) configures the container process.

* **`terminal`** (bool, optional) specifies whether you want a terminal attached to that process, defaults to false.
* **`initialConsoleSize`** (array of uints, optional) specifies the initial console size (height, width) of the terminal if attached.
* **`cwd`** (string, required) is the working directory that will be set for the executable.
This value MUST be an absolute path.
* **`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution.
Expand Down Expand Up @@ -139,6 +140,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
```json
"process": {
"terminal": true,
"initialConsoleSize": [25, 80],
"user": {
"uid": 1,
"gid": 1,
Expand Down Expand Up @@ -174,6 +176,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
```json
"process": {
"terminal": true,
"initialConsoleSize": [25, 80],
"user": {
"uid": 1,
"gid": 1,
Expand Down
2 changes: 2 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type Spec struct {
type Process struct {
// Terminal creates an interactive terminal for the container.
Terminal bool `json:"terminal,omitempty"`
// InitialConsoleSize contains the initial h,w of the console.
InitialConsoleSize [2]uint `json:"initialConsoleSize"`
// User specifies user information for the process.
User User `json:"user"`
// Args specifies the binary and arguments for the application to execute.
Expand Down

0 comments on commit dcf55f5

Please sign in to comment.