docker: redirect stderr to stdout for nicer exceptions.

Unclear whether or not this is a hack, or whether it should be the
default for more connection methods. When enabled, the exception text
thrown when bootstrap fails includes the stderr text, which is
apparently always useful.
pull/350/head
David Wilson 6 years ago
parent df112be704
commit 7d62c79ab7

@ -43,6 +43,11 @@ class Stream(mitogen.parent.Stream):
username = None
docker_path = 'docker'
# TODO: better way of capturing errors such as "No such container."
create_child_args = {
'merge_stdio': True
}
def construct(self, container=None, image=None,
docker_path=None, username=None,
**kwargs):

Loading…
Cancel
Save