Skip to content

Commit c86f32c

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

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

config.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ For more information about SELinux, see [Selinux documentation](http://selinuxp
118118
* **`noNewPrivileges`** (bool, optional) setting `noNewPrivileges` to true prevents the processes in the container from gaining additional privileges.
119119
[The kernel doc](https://www.kernel.org/doc/Documentation/prctl/no_new_privs.txt) has more information on how this is achieved using a prctl system call.
120120

121+
For Windows-based systems, the process structure supports the following process specific fields:
122+
123+
* **`initialConsoleSize`** (array of uints, optional) specifies the initial console size (height, width) of the terminal if attached.
124+
121125
### User
122126

123127
The user for the process is a platform-specific structure that allows specific control over which user the process runs as.

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ type Process struct {
5151
ApparmorProfile string `json:"apparmorProfile,omitempty" platform:"linux"`
5252
// SelinuxLabel specifies the selinux context that the container process is run as. (this field is platform dependent)
5353
SelinuxLabel string `json:"selinuxLabel,omitempty" platform:"linux"`
54+
// InitialConsoleSize contains the initial h,w of the console size.
55+
InitialConsoleSize [2]uint `json:"initialConsoleSize" platform:"windows"`
5456
}
5557

5658
// User specifies Linux/Solaris specific user and group information

0 commit comments

Comments
 (0)