I’m trying to run a docker container from a prefect flow. The prefect 1.0 solution of using DockerRun seemed to be ideal, so I’m looking for a replacement … however DockerContainer has issues connecting to my local docker server …
Here’s my (derived from @Nate’s example - thanks!) code …
Copy code
from prefect.infrastructure.container import DockerContainer
DockerContainer(
image="my_image",
command=["python", "/app/modules/my_image/scripts/run_test_script.py"]
).run()
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.