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
b6d0dc1e
Kaydet (Commit)
b6d0dc1e
authored
Ara 15, 2017
tarafından
Felipe Ruhland
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed DEFAULT API VERSION in docstrings.
Signed-off-by:
Felipe Ruhland
<
felipe.ruhland@gmail.com
>
üst
8cfd4cb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
client.py
docker/api/client.py
+8
-8
client.py
docker/client.py
+2
-2
No files found.
docker/api/client.py
Dosyayı görüntüle @
b6d0dc1e
...
@@ -63,21 +63,21 @@ class APIClient(
...
@@ -63,21 +63,21 @@ class APIClient(
>>> import docker
>>> import docker
>>> client = docker.APIClient(base_url='unix://var/run/docker.sock')
>>> client = docker.APIClient(base_url='unix://var/run/docker.sock')
>>> client.version()
>>> client.version()
{u'ApiVersion': u'1.
24
',
{u'ApiVersion': u'1.
33
',
u'Arch': u'amd64',
u'Arch': u'amd64',
u'BuildTime': u'201
6-09-27T23:38:15.810178467
+00:00',
u'BuildTime': u'201
7-11-19T18:46:37.000000000
+00:00',
u'
Experimental': True
,
u'
GitCommit': u'f4ffd2511c'
,
u'G
itCommit': u'45bed2c
',
u'G
oVersion': u'go1.9.2
',
u'
GoVersion': u'go1.6.3
',
u'
KernelVersion': u'4.14.3-1-ARCH
',
u'
KernelVersion': u'4.4.22-moby
',
u'
MinAPIVersion': u'1.12
',
u'Os': u'linux',
u'Os': u'linux',
u'Version': u'1
.12.2-rc1
'}
u'Version': u'1
7.10.0-ce
'}
Args:
Args:
base_url (str): URL to the Docker server. For example,
base_url (str): URL to the Docker server. For example,
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
version (str): The version of the API to use. Set to ``auto`` to
version (str): The version of the API to use. Set to ``auto`` to
automatically detect the server's version. Default: ``1.
26
``
automatically detect the server's version. Default: ``1.
30
``
timeout (int): Default timeout for API calls, in seconds.
timeout (int): Default timeout for API calls, in seconds.
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
``True`` to enable it with default options, or pass a
``True`` to enable it with default options, or pass a
...
...
docker/client.py
Dosyayı görüntüle @
b6d0dc1e
...
@@ -26,7 +26,7 @@ class DockerClient(object):
...
@@ -26,7 +26,7 @@ class DockerClient(object):
base_url (str): URL to the Docker server. For example,
base_url (str): URL to the Docker server. For example,
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
version (str): The version of the API to use. Set to ``auto`` to
version (str): The version of the API to use. Set to ``auto`` to
automatically detect the server's version. Default: ``1.
26
``
automatically detect the server's version. Default: ``1.
30
``
timeout (int): Default timeout for API calls, in seconds.
timeout (int): Default timeout for API calls, in seconds.
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
``True`` to enable it with default options, or pass a
``True`` to enable it with default options, or pass a
...
@@ -60,7 +60,7 @@ class DockerClient(object):
...
@@ -60,7 +60,7 @@ class DockerClient(object):
Args:
Args:
version (str): The version of the API to use. Set to ``auto`` to
version (str): The version of the API to use. Set to ``auto`` to
automatically detect the server's version. Default: ``1.
26
``
automatically detect the server's version. Default: ``1.
30
``
timeout (int): Default timeout for API calls, in seconds.
timeout (int): Default timeout for API calls, in seconds.
ssl_version (int): A valid `SSL version`_.
ssl_version (int): A valid `SSL version`_.
assert_hostname (bool): Verify the hostname of the server.
assert_hostname (bool): Verify the hostname of the server.
...
...
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