diff --git a/docker/models/containers.py b/docker/models/containers.py index 9d6f2cc6af..34996cec61 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -172,10 +172,10 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False, exit_code: (int): Exit code for the executed command or ``None`` if either ``stream```or ``socket`` is ``True``. - output: (generator or str): + output: (generator or bytes): If ``stream=True``, a generator yielding response chunks. If ``socket=True``, a socket object for the connection. - A string containing response data otherwise. + A bytestring containing response data otherwise. Raises: :py:class:`docker.errors.APIError`