Hi there! Does anyone know how to run a flow from ...
# ask-community
r
Hi there! Does anyone know how to run a flow from a specific docker image (not the prefect image) in Prefect 2.0? I’ve been trying with this, passing the
image=<my_images_name>
argument to the DockerContainer, but doesn’t work, or at least, it doesn’t run the
CMD
specified in the Dockerfile of that image
j
Are you specifying this in a yaml deployment?
k
What version of Prefect are you in? Using a Docker container infrastructure will help
r
Thanks Jean and Khuyen! I was using a yaml deployment run by a
build deployment
but now I saw that even specifying the infrastructure within the deployment, it was not getting it when I built the yaml. It still wasn’t what I needed to do and couldn’t make it work, that was running a specific docker from a flow. Sadly I think I’ll have to go back to Airflow 😭 I was using prefect 2.0 btw
k
Could you be more specific about which infrastructure you tried to use and the command that you used?