Merge pull request #2181 from funkyfuture/exec_run_docs

Fixes the documented return value of models.containers.Container.exec_run
This commit is contained in:
Joffrey F 2018-11-30 14:44:08 -08:00 committed by GitHub
commit 666388168d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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`