summaryrefslogtreecommitdiff
path: root/docker/api/container.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2018-02-13 16:28:06 -0800
committerJoffrey F <joffrey@docker.com>2018-02-13 17:05:16 -0800
commit48e45afe88f89a60401e3dfb7af69080204e6077 (patch)
tree2f4c812891cbb67231671aa5d7608c656a5bec34 /docker/api/container.py
parent9e75609aec497361068bd0f57d5cc24065621106 (diff)
downloaddocker-py-c5622_device_cgroup_rules.tar.gz
Add support for device_cgroup_rules parameter in host configc5622_device_cgroup_rules
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/api/container.py')
-rw-r--r--docker/api/container.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/api/container.py b/docker/api/container.py
index 962d8cb..8994129 100644
--- a/docker/api/container.py
+++ b/docker/api/container.py
@@ -438,6 +438,8 @@ class ContainerApiMixin(object):
``0,1``).
cpuset_mems (str): Memory nodes (MEMs) in which to allow execution
(``0-3``, ``0,1``). Only effective on NUMA systems.
+ device_cgroup_rules (:py:class:`list`): A list of cgroup rules to
+ apply to the container.
device_read_bps: Limit read rate (bytes per second) from a device
in the form of: `[{"Path": "device_path", "Rate": rate}]`
device_read_iops: Limit read rate (IO per second) from a device.