docker-py icon indicating copy to clipboard operation
docker-py copied to clipboard

Provide a way to read stdout on non-zero exit code

Open ovesh opened this issue 3 years ago • 1 comments

If a container exits non-zero, an ContainerError is thrown, but this object only provides access to stderr, not stdout. Some binaries write their logs/errors to stdout instead of stderr, or at least stdout can provide a clue on why the command failed.

ovesh avatar Jun 22 '22 16:06 ovesh

This is a duplicate of https://github.com/docker/docker-py/issues/2745.

tristan-f-r avatar Sep 05 '25 21:09 tristan-f-r