Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
f8609c74
Kaydet (Commit)
f8609c74
authored
Nis 06, 2017
tarafından
Joffrey F
Kaydeden (comit)
GitHub
Nis 06, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1554 from peter-slovak/fix-docs-container-cpu-opts
Fix docs container cpu opts
üst
19ef2ddc
c80762d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
container.py
docker/api/container.py
+2
-2
containers.py
docker/models/containers.py
+3
-5
No files found.
docker/api/container.py
Dosyayı görüntüle @
f8609c74
...
@@ -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``,
...
...
docker/models/containers.py
Dosyayı görüntüle @
f8609c74
...
@@ -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 (
floa
t or str): Memory limit. Accepts float values
mem_limit (
in
t 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment