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
729c2e78
Kaydet (Commit)
729c2e78
authored
Mar 19, 2019
tarafından
Yincen Xia
Kaydeden (comit)
Ulysses Souza
Mar 19, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update doc for container.exec_run & exec_api about demux
Signed-off-by:
Yincen Xia
<
philip980507@msn.cn
>
üst
0f7af860
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
exec_api.py
docker/api/exec_api.py
+2
-1
containers.py
docker/models/containers.py
+2
-1
No files found.
docker/api/exec_api.py
Dosyayı görüntüle @
729c2e78
...
@@ -137,7 +137,8 @@ class ExecApiMixin(object):
...
@@ -137,7 +137,8 @@ class ExecApiMixin(object):
(generator or str or tuple): If ``stream=True``, a generator
(generator or str or tuple): If ``stream=True``, a generator
yielding response chunks. If ``socket=True``, a socket object for
yielding response chunks. If ``socket=True``, a socket object for
the connection. A string containing response data otherwise. If
the connection. A string containing response data otherwise. If
``demux=True``, stdout and stderr are separated.
``demux=True``, a tuple with two elements of type byte: stdout and
stderr.
Raises:
Raises:
:py:class:`docker.errors.APIError`
:py:class:`docker.errors.APIError`
...
...
docker/models/containers.py
Dosyayı görüntüle @
729c2e78
...
@@ -173,9 +173,10 @@ class Container(Model):
...
@@ -173,9 +173,10 @@ class Container(Model):
exit_code: (int):
exit_code: (int):
Exit code for the executed command or ``None`` if
Exit code for the executed command or ``None`` if
either ``stream```or ``socket`` is ``True``.
either ``stream```or ``socket`` is ``True``.
output: (generator
or bytes
):
output: (generator
, bytes, or tuple
):
If ``stream=True``, a generator yielding response chunks.
If ``stream=True``, a generator yielding response chunks.
If ``socket=True``, a socket object for the connection.
If ``socket=True``, a socket object for the connection.
If ``demux=True``, a tuple of two bytes: stdout and stderr.
A bytestring containing response data otherwise.
A bytestring containing response data otherwise.
Raises:
Raises:
...
...
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