You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the specifications in the above table of contents, the keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in [RFC 2119](http://tools.ietf.org/html/rfc2119) (Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997).
@@ -32,6 +33,7 @@ An implementation is compliant for a given CPU architecture if it satisfies all
32
33
Protocols defined by this specification are:
33
34
* Linux containers: [runtime.md](runtime.md), [config.md](config.md), [config-linux.md](config-linux.md), and [runtime-linux.md](runtime-linux.md).
34
35
* Solaris containers: [runtime.md](runtime.md), [config.md](config.md), and [config-solaris.md](config-solaris.md).
36
+
* Windows containers: [runtime.md](runtime.md), [config.md](config.md), and [config-windows.md](config-windows.md).
This document describes the schema for the [Windows-specific section](config.md#platform-specific-configuration) of the [container configuration](config.md).
4
+
The Windows container specification uses APIs provided by the Windows Host Compute Service (HCS) to fulfill the spec.
5
+
6
+
## Resources
7
+
8
+
You can configure a container's resource limits via the OPTIONAL `resources` field of the Windows configuration.
9
+
10
+
### Memory
11
+
12
+
`memory` is an OPTIONAL configuration for the container's memory usage.
13
+
14
+
The following parameters can be specified:
15
+
16
+
***`limit`***(uint64, OPTIONAL)* - sets limit of memory usage in bytes.
17
+
18
+
***`reservation`***(uint64, OPTIONAL)* - sets the guaranteed minimum amount of memory for a container in bytes.
19
+
20
+
#### Example
21
+
22
+
```json
23
+
"windows": {
24
+
"resources": {
25
+
"memory": {
26
+
"limit": 2097152,
27
+
"reservation": 524288
28
+
}
29
+
}
30
+
}
31
+
```
32
+
33
+
### CPU
34
+
35
+
`cpu` is an OPTIONAL configuration for the container's CPU usage.
36
+
37
+
The following parameters can be specified:
38
+
39
+
***`count`***(uint64, OPTIONAL)* - specifies the number of CPUs available to the container.
40
+
41
+
***`shares`***(uint16, OPTIONAL)* - specifies the relative weight to other containers with CPU shares. The range is from 1 to 10000.
42
+
43
+
***`percent`***(uint, OPTIONAL)* - specifies the percentage of available CPUs usable by the container.
44
+
45
+
#### Example
46
+
47
+
```json
48
+
"windows": {
49
+
"resources": {
50
+
"cpu": {
51
+
"percent": 50
52
+
}
53
+
}
54
+
}
55
+
```
56
+
57
+
### Storage
58
+
59
+
`storage` is an OPTIONAL configuration for the container's storage usage.
60
+
61
+
The following parameters can be specified:
62
+
63
+
***`iops`***(uint64, OPTIONAL)* - specifies the maximum IO operations per second for the system drive of the container.
64
+
65
+
***`bps`***(uint64, OPTIONAL)* - specifies the maximum bytes per second for the system drive of the container.
66
+
67
+
***`sandboxSize`***(uint64, OPTIONAL)* - specifies the minimum size of the system drive in bytes.
68
+
69
+
#### Example
70
+
71
+
```json
72
+
"windows": {
73
+
"resources": {
74
+
"storage": {
75
+
"iops": 50
76
+
}
77
+
}
78
+
}
79
+
```
80
+
81
+
### Network
82
+
83
+
`network` is an OPTIONAL configuration for the container's network usage.
84
+
85
+
The following parameters can be specified:
86
+
87
+
***`egressBandwidth`***(uint64, OPTIONAL)* - specified the maximum egress bandwidth in bytes per second for the container.
0 commit comments