Hello all, currently I have a docker image that I ...
# ask-community
m
Hello all, currently I have a docker image that I have a flow run, and it works well, however, I was hoping to learn if it is possible that from within that image I can at a minimum expose logging information to the Prefect UI as well as possibly having tasks contained in that image that my Flow that is external to that image can pick up and run. Thank you in advance!
Following up on this question as I asked pretty late yesterday night
z
Hey @Matthew Blau, I'm not sure what you mean by "having tasks contained in that image that my Flow that is external to that image can pick up and run", could explain that some more?
Sending logging to the API is enabled for the
prefect
logger by default, you can use
<http://prefect.context.logger.info|prefect.context.logger.info>("Hello")
to log to the UI. See https://docs.prefect.io/core/concepts/logging.html#logging
m
Hey @Zanie I have a docker image that I use Local secrets in so it uses prefect as a base image and I have a flow that creates, starts, and gets the container logs. I can see that it gets logs in the UI if something broke, but I was hoping for more verbose container logs where I can see more info about things running inside of the container
z
Ah I see. Github is the best place for feature requests, I don't think there's a way to make this happen as is. Feel free to add to the issue there. @Marvin open "Allow
DockerRun
container logs to be streamed to the UI"