Hi guys, it is kind of pain to debug docker build errors in Prefect when built using
.deploy
, as Prefect does not output anything but the very latest error, which is mostly missing the context and the text of the real fatal error. While building (in the deploy step) a custom image, it only shows building, without the steps, and if an error happens, show the "error" message, while a the real message, when using docker build, is in the fatal message, which prefect just does not show. Can we make prefect show all of the building steps, just like docker build?
c
Chris White
06/29/2025, 8:45 PM
Hi Mohammed - Prefect should stream the docker build output to stdout, and only raises with the final build error. This sounds like something you could open an enhancement request for with a bit more information: https://github.com/PrefectHQ/prefect/issues
m
Mohammed Noureldin
06/29/2025, 9:05 PM
Thanks Chris - I will create an GitHub issue for that.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.