https://prefect.io logo
Title
a

Andreas Nord

08/12/2022, 3:12 PM
Hi! Decided to try to migrate to Prefect 2 but have some trouble getting a Docker agent going. I get the error:
Flow could not be retrieved from deployment.
On Prefect 1 I would package all my python dependencies in an Docker image, as well as the flow code (using storage=Module()). What would be the equivalent for Prefect 2? I saw the option of putting the flow definitions on AWS but I don't really see the point
1
k

Khuyen Tran

08/12/2022, 3:13 PM
You might want to look at file systems
Here is how to execute your flow runs in a Docker container
a

Andreas Nord

08/12/2022, 3:16 PM
Hm ok so I cannot store my flows inside my image, this is a drawback compared to Prefect 1, are you planning to implement this?
o

Oscar Björhn

08/12/2022, 3:21 PM
Someone from Prefect posted about it earlier today, I think it's meant to be a couple of weeks out.
k

Khuyen Tran

08/12/2022, 3:22 PM
Yes, we are actively working on it
a

Andreas Nord

08/12/2022, 3:23 PM
Great thanks 👍