Hi all, when deploying flows via dockerfile, prefect seems to create a large number of images and containers locally.
Is there documentation on how to best configure the docker deployment to avoid that behavior?
n
Nas Denkov
10/09/2024, 10:50 AM
You can let the Prefect worker know that it should remove the container after your flow finishes. You can also configure it to not pull the images if they are already present according to the docker daemon running on the target machine. This is how you would do that using a
Thanks for the quick response!
but aren't those configs for the worker the docker flow is run in?
Robin
10/09/2024, 11:14 AM
What I meant is that when I deploy a docker deployment from my mac, it creates a new docker image and pushes it to the docker registry, instead of reusing an old one
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.