https://prefect.io logo
Title
r

Rob Freedy

12/13/2022, 5:40 PM
@ask-marvin how do I run a Prefect flow in a Docker container?
a

ask-marvin

12/13/2022, 5:40 PM
Let me check that for you @Rob Freedy
You can use the
run_in
function to run a flow in a Docker container.
from prefect import flow, run_in@flow()def my_flow():    print(run_in(image={"docker": "hub"}))    if __name__ == "__main__":    my_flow()