https://prefect.io logo
Title
r

Ronald Tichauer

08/02/2022, 5:26 PM
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

Jean Luciano

08/02/2022, 5:28 PM
Are you specifying this in a yaml deployment?
k

Khuyen Tran

08/02/2022, 5:36 PM
What version of Prefect are you in? Using a Docker container infrastructure will help
r

Ronald Tichauer

08/03/2022, 11:53 PM
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

Khuyen Tran

08/04/2022, 2:59 PM
Could you be more specific about which infrastructure you tried to use and the command that you used?