Skip to content

Commit 6663881

Browse files
authored
Merge pull request #2181 from funkyfuture/exec_run_docs
Fixes the documented return value of models.containers.Container.exec_run
2 parents 9a67e20 + 3fca75f commit 6663881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/models/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False,
172172
exit_code: (int):
173173
Exit code for the executed command or ``None`` if
174174
either ``stream```or ``socket`` is ``True``.
175-
output: (generator or str):
175+
output: (generator or bytes):
176176
If ``stream=True``, a generator yielding response chunks.
177177
If ``socket=True``, a socket object for the connection.
178-
A string containing response data otherwise.
178+
A bytestring containing response data otherwise.
179179
180180
Raises:
181181
:py:class:`docker.errors.APIError`

0 commit comments

Comments
 (0)