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
114512a9
Kaydet (Commit)
114512a9
authored
Kas 02, 2017
tarafından
Joffrey F
Kaydeden (comit)
Joffrey F
Kas 07, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Doc fixes
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
a0853622
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
20 deletions
+22
-20
build.py
docker/api/build.py
+2
-2
plugin.py
docker/api/plugin.py
+4
-4
healthcheck.py
docker/types/healthcheck.py
+7
-6
services.py
docker/types/services.py
+9
-8
No files found.
docker/api/build.py
Dosyayı görüntüle @
114512a9
...
...
@@ -93,8 +93,8 @@ class BuildApiMixin(object):
shmsize (int): Size of `/dev/shm` in bytes. The size must be
greater than 0. If omitted the system uses 64MB
labels (dict): A dictionary of labels to set on the image
cache_from (
list): A list of images used for build cache
resolution
cache_from (
:py:class:`list`): A list of images used for build
cache
resolution
target (str): Name of the build-stage to build in a multi-stage
Dockerfile
network_mode (str): networking mode for the run commands during
...
...
docker/api/plugin.py
Dosyayı görüntüle @
114512a9
...
...
@@ -110,8 +110,8 @@ class PluginApiMixin(object):
remote (string): Remote reference for the plugin to install.
The ``:latest`` tag is optional, and is the default if
omitted.
privileges (
list): A list of privileges the user consents to
grant to the plugin. Can be retrieved using
privileges (
:py:class:`list`): A list of privileges the user
consents to
grant to the plugin. Can be retrieved using
:py:meth:`~plugin_privileges`.
name (string): Local name for the pulled plugin. The
``:latest`` tag is optional, and is the default if omitted.
...
...
@@ -225,8 +225,8 @@ class PluginApiMixin(object):
tag is optional and is the default if omitted.
remote (string): Remote reference to upgrade to. The
``:latest`` tag is optional and is the default if omitted.
privileges (
list): A list of privileges the user consents to
grant to the plugin. Can be retrieved using
privileges (
:py:class:`list`): A list of privileges the user
consents to
grant to the plugin. Can be retrieved using
:py:meth:`~plugin_privileges`.
Returns:
...
...
docker/types/healthcheck.py
Dosyayı görüntüle @
114512a9
...
...
@@ -8,14 +8,15 @@ class Healthcheck(DictType):
Defines a healthcheck configuration for a container or service.
Args:
test (:py:class:`list` or str): Test to perform to determine
container health. Possible values:
- Empty list: Inherit healthcheck from parent image
- ``["NONE"]``: Disable healthcheck
- ``["CMD", args...]``: exec arguments directly.
- ``["CMD-SHELL", command]``: RUn command in the system's
default shell.
- Empty list: Inherit healthcheck from parent image
- ``["NONE"]``: Disable healthcheck
- ``["CMD", args...]``: exec arguments directly.
- ``["CMD-SHELL", command]``: RUn command in the system's
default shell.
If a string is provided, it will be used as a ``CMD-SHELL``
command.
interval (int): The time to wait between checks in nanoseconds. It
...
...
docker/types/services.py
Dosyayı görüntüle @
114512a9
...
...
@@ -405,8 +405,9 @@ class DriverConfig(dict):
"""
Indicates which driver to use, as well as its configuration. Can be used
as ``log_driver`` in a :py:class:`~docker.types.ContainerSpec`,
and for the `driver_config` in a volume
:py:class:`~docker.types.Mount`.
for the `driver_config` in a volume :py:class:`~docker.types.Mount`, or
as the driver object in
:py:meth:`create_secret`.
Args:
...
...
@@ -562,12 +563,12 @@ class Placement(dict):
Placement constraints to be used as part of a :py:class:`TaskTemplate`
Args:
constraints (
list
): A list of constraints
preferences (
list): Preferences provide a way to make th
e
scheduler aware of factors such as topology. They are provided
in order from highest to lowest precedence.
platforms (
list): A list of platforms expressed as ``(arch, os)``
tuples
constraints (
:py:class:`list`
): A list of constraints
preferences (
:py:class:`list`): Preferences provide a way to mak
e
the scheduler aware of factors such as topology. They are
provided
in order from highest to lowest precedence.
platforms (
:py:class:`list`): A list of platforms expressed as
``(arch, os)``
tuples
"""
def
__init__
(
self
,
constraints
=
None
,
preferences
=
None
,
platforms
=
None
):
if
constraints
is
not
None
:
...
...
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