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
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 used to set limits on 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 used to set limits on 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 used to set limits on 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 used to set limits on 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