Kaydet (Commit) f8609c74 authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #1554 from peter-slovak/fix-docs-container-cpu-opts

Fix docs container cpu opts
...@@ -473,8 +473,8 @@ class ContainerApiMixin(object): ...@@ -473,8 +473,8 @@ class ContainerApiMixin(object):
cap_add (list of str): Add kernel capabilities. For example, cap_add (list of str): Add kernel capabilities. For example,
``["SYS_ADMIN", "MKNOD"]``. ``["SYS_ADMIN", "MKNOD"]``.
cap_drop (list of str): Drop kernel capabilities. cap_drop (list of str): Drop kernel capabilities.
cpu_group (int): The length of a CPU period in microseconds. cpu_period (int): The length of a CPU period in microseconds.
cpu_period (int): Microseconds of CPU time that the container can cpu_quota (int): Microseconds of CPU time that the container can
get in a CPU period. get in a CPU period.
cpu_shares (int): CPU shares (relative weight). cpu_shares (int): CPU shares (relative weight).
cpuset_cpus (str): CPUs in which to allow execution (``0-3``, cpuset_cpus (str): CPUs in which to allow execution (``0-3``,
......
...@@ -456,8 +456,8 @@ class ContainerCollection(Collection): ...@@ -456,8 +456,8 @@ class ContainerCollection(Collection):
cap_add (list of str): Add kernel capabilities. For example, cap_add (list of str): Add kernel capabilities. For example,
``["SYS_ADMIN", "MKNOD"]``. ``["SYS_ADMIN", "MKNOD"]``.
cap_drop (list of str): Drop kernel capabilities. cap_drop (list of str): Drop kernel capabilities.
cpu_group (int): The length of a CPU period in microseconds. cpu_period (int): The length of a CPU period in microseconds.
cpu_period (int): Microseconds of CPU time that the container can cpu_quota (int): Microseconds of CPU time that the container can
get in a CPU period. get in a CPU period.
cpu_shares (int): CPU shares (relative weight). cpu_shares (int): CPU shares (relative weight).
cpuset_cpus (str): CPUs in which to allow execution (``0-3``, cpuset_cpus (str): CPUs in which to allow execution (``0-3``,
...@@ -510,14 +510,12 @@ class ContainerCollection(Collection): ...@@ -510,14 +510,12 @@ class ContainerCollection(Collection):
driver. driver.
mac_address (str): MAC address to assign to the container. mac_address (str): MAC address to assign to the container.
mem_limit (float or str): Memory limit. Accepts float values mem_limit (int or str): Memory limit. Accepts float values
(which represent the memory limit of the created container in (which represent the memory limit of the created container in
bytes) or a string with a units identification char bytes) or a string with a units identification char
(``100000b``, ``1000k``, ``128m``, ``1g``). If a string is (``100000b``, ``1000k``, ``128m``, ``1g``). If a string is
specified without a units character, bytes are assumed as an specified without a units character, bytes are assumed as an
intended unit. intended unit.
mem_limit (str or int): Maximum amount of memory container is
allowed to consume. (e.g. ``1G``).
mem_swappiness (int): Tune a container's memory swappiness mem_swappiness (int): Tune a container's memory swappiness
behavior. Accepts number between 0 and 100. behavior. Accepts number between 0 and 100.
memswap_limit (str or int): Maximum amount of memory + swap a memswap_limit (str or int): Maximum amount of memory + swap a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment