https://prefect.io logo
j

Joe

09/29/2022, 5:34 PM
Question regarding upgrading Prefect 1.0 -> 2.0 Container Execution: All of my Prefect 1.0 flows run Docker containers, they aren't flows in Docker containers so in the course of upgrading to Prefect 2.0, the Docker Infrastructure block seems counterproductive. Do I need to rewrite all of the Docker Client tasks from Prefect 1.0 to maintain their functionality?
n

Nate

09/29/2022, 5:39 PM
Hi @Joe ! What do your Docker client tasks look like? Unless you're using the prefect 1 docker tasks from the library, you shouldn't have to rewrite them
j

Joe

09/29/2022, 5:42 PM
Yes - that's what's in use: run, list, logs, etc.
We have a lot of custom, frequently reused, tasks around configuring the containers - volume mounts, environment variables, so replacing things like Start, Stop, Wait, are all doable, just want to be sure
n

Nate

09/29/2022, 5:54 PM
Ah I see. We're in the process of migrating tasks from the prefect task library into their corresponding collections for prefect 2, and we haven't finished the
prefect-docker
collection yet.