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
Copy file name to clipboardExpand all lines: docs/reference/api/docker_remote_api.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,7 @@ This section lists each version from latest to oldest. Each listing includes a
166
166
*`GET /nodes` and `GET /node/(id or name)` now return `Addr` as part of a node's `Status`, which is the address that that node connects to the manager from.
167
167
* The `HostConfig` field now includes `NanoCPUs` that represents CPU quota in units of 10<sup>-9</sup> CPUs.
168
168
*`GET /info` now returns more structured information about security options.
169
+
* The `HostConfig` field now includes `CpuCount` that represents the number of CPUs available for execution by the container. Windows daemon only.
c.Assert(strings.TrimSpace(out), checker.Contains, "WARNING: Conflicting options: CPU count takes priority over CPU shares on Windows Server Containers. CPU shares discarded")
4805
+
c.Assert(strings.TrimSpace(out), checker.Contains, "WARNING: Conflicting options: CPU count takes priority over CPU percent on Windows Server Containers. CPU percent discarded")
Copy file name to clipboardExpand all lines: man/docker-create.1.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ docker-create - Create a new container
15
15
[**--cap-drop**[=*[]*]]
16
16
[**--cgroup-parent**[=*CGROUP-PATH*]]
17
17
[**--cidfile**[=*CIDFILE*]]
18
+
[**--cpu-count**[=*0*]]
19
+
[**--cpu-percent**[=*0*]]
18
20
[**--cpu-period**[=*0*]]
19
21
[**--cpu-quota**[=*0*]]
20
22
[**--cpu-rt-period**[=*0*]]
@@ -124,6 +126,18 @@ The initial status of the container created with **docker create** is 'created'.
124
126
**--cidfile**=""
125
127
Write the container ID to the file
126
128
129
+
**--cpu-count**=*0*
130
+
Limit the number of CPUs available for execution by the container.
131
+
132
+
On Windows Server containers, this is approximated as a percentage of total CPU usage.
133
+
134
+
On Windows Server containers, the processor resource controls are mutually exclusive, the order of precedence is CPUCount first, then CPUShares, and CPUPercent last.
135
+
136
+
**--cpu-percent**=*0*
137
+
Limit the percentage of CPU available for execution by a container running on a Windows daemon.
138
+
139
+
On Windows Server containers, the processor resource controls are mutually exclusive, the order of precedence is CPUCount first, then CPUShares, and CPUPercent last.
140
+
127
141
**--cpu-period**=*0*
128
142
Limit the CPU CFS (Completely Fair Scheduler) period
0 commit comments