If I build an image using the high-level docker-py sdk, I get a BuildError on failure., eg
try:
client.images.build(...)
except:
print("Hey something wrong with image build!")
I know I can use the low level client API to directly hook in and stream logs, see How can I detect when docker-py client.build() fails.
Is there a way to get some useful debug output from the image build script without going down to the lower level api?