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).
@@ -30,6 +31,7 @@ An implementation is compliant for a given CPU architecture if it satisfies all
30
31
Protocols defined by this specification are:
31
32
* Linux containers: [runtime.md](runtime.md), [config.md](config.md), [config-linux.md](config-linux.md), and [runtime-linux.md](runtime-linux.md).
32
33
* Solaris containers: [runtime.md](runtime.md), [config.md](config.md), and [config-solaris.md](config-solaris.md).
34
+
* 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
+
7
+
#### Memory
8
+
9
+
`memory` is an optional configuration for the container's memory usage.
10
+
11
+
The following parameters can be specified:
12
+
13
+
***`limit`***(uint64, optional)* - sets limit of memory usage in bytes
14
+
15
+
***`reservation`***(uint64, optional)* - sets soft limit of memory usage in bytes
16
+
17
+
###### Example
18
+
19
+
```json
20
+
"memory": {
21
+
"limit": 2097152,
22
+
"reservation": 524288
23
+
}
24
+
```
25
+
26
+
#### CPU
27
+
28
+
`cpu` is an optional configuration for the container's CPU usage.
29
+
30
+
The following parameters can be specified:
31
+
32
+
***`count`***(uint64, optional)* - specifies the number of CPUs available to the container.
33
+
34
+
***`shares`***(uint64, optional)* - specifies the relative weight to other containers with CPU shares. The range is from 1 to 10000.
35
+
36
+
***`percent`***(uint, optional)* - specifies the percentage of available CPUs usable by the container.
37
+
38
+
###### Example
39
+
40
+
```json
41
+
"cpu": {
42
+
"percent": 50
43
+
}
44
+
```
45
+
46
+
#### Storage
47
+
48
+
`storage` is an optional configuration for the container's storage usage.
49
+
50
+
The following parameters can be specified:
51
+
52
+
***`iops`***(uint64, optional)* - specifies the maximum Iops for the system drive of the container.
53
+
54
+
***`bps`***(uint64, optional)* - specifies the maximum bytes per second for the system drive of the container.
55
+
56
+
***`sandboxSize`***(uint64, optional)* - specifies the size to expand the system drive of the container to if it is currently smaller.
57
+
58
+
###### Example
59
+
60
+
```json
61
+
"storage": {
62
+
"iops": 50
63
+
}
64
+
```
65
+
66
+
#### Network
67
+
68
+
`network` is an optional configuration for the container's network usage.
69
+
70
+
The following parameters can be specified:
71
+
72
+
***`egressBandwidth`***(uint64, optional)* - specified the maximum egress bandwidth in bytes per second for the container.
0 commit comments