Update a container
Path parameters
Request body
An integer value representing this container's relative CPU weight versus other containers.
Memory limit in bytes.
Path to cgroups under which the container's cgroup is created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups are created if they do not already exist.
Block IO weight (relative weight).
The length of a CPU period in microseconds.
Microseconds of CPU time that the container can get in a CPU period.
The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks.
The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks.
CPUs in which to allow execution (e.g., 0-3, 0,1).
Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
a list of cgroup rules to apply to the container
Memory soft limit in bytes.
Total memory limit (memory + swap). Set as -1 to enable unlimited swap.
Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100.
CPU quota in units of 10<sup>-9</sup> CPUs.
Disable OOM Killer for the container.
Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used.
Tune a container's PIDs limit. Set 0 or -1 for unlimited, or null to not change.
The number of usable CPUs (Windows only).
On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is CPUCount first, then CPUShares, and CPUPercent last.
The usable percentage of the available CPUs (Windows only).
On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is CPUCount first, then CPUShares, and CPUPercent last.
Maximum IOps for the container system drive (Windows only)
Maximum IO in bytes per second for the container system drive (Windows only).
Response
The request has succeeded.
Warnings encountered when updating the container.