Open aidansteele opened 1 year ago
Hi, are there any plans to work on a fix for this? We changed to using the higher level images.build call because of this, but because that call is blocking we are unable to stream the build logs
This is such a pain in the ass. When are you planning to fix it? It makes working with sam build
nightmare. When an error occurs nothing is seen what and why!!!!
it's a true nightmare
This code will only raise an exception (via
_result
and_raise_for_status
) for a non-chunked response:https://github.com/docker/docker-py/blob/aaf68b7f98df7f886778395112267b9b0f6140bc/docker/api/client.py#L339-L358
This is problematic, because Docker for Mac appears to return errors with a chunked encoding:
This means that exceptions are correctly raised on Linux (which doesn't return a chunked response), but not on Mac. Maybe
self._raise_for_status(response)
can be called unconditionally in_stream_helper
, somewhere around line 341?Docker version info: