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

Merge pull request #2181 from funkyfuture/exec_run_docs

Fixes the documented return value of models.containers.Container.exec_run
...@@ -172,10 +172,10 @@ class Container(Model): ...@@ -172,10 +172,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 str): output: (generator or bytes):
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.
A string containing response data otherwise. A bytestring containing response data otherwise.
Raises: Raises:
:py:class:`docker.errors.APIError` :py:class:`docker.errors.APIError`
......
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