Hi everyone — I’m using Docker storage but I want ...
# ask-community
b
Hi everyone — I’m using Docker storage but I want to register the same flow against 2 Prefect Servers (one is PROD the other is UAT and we have some other as well). All docker images are stored in the same place so we don’t need to build and push the docker image all the time. Is there a way to re-use the docker storage to deploy to many servers? I tried just “not building” because it was already built but I got the error:
Copy code
Failed to load and execute Flow's environment: ValueError('Flow is not contained in this Storage')
k
Hey @Bruno Murino, I think the answer here is no, but you could try another Storage combined with DockerRun and that wouldn’t require the re-build of the container each time you register. The DockerRun will pull the image, and then run the Flow on top of it. This way, you only need to store the Docker container once.
b
I’m using an ECS Agent — what other storage can I use? I thought I could only use docker storage..
k
The
ECSRun
takes in an image , so you could provide the image this way. And then the flow could live on S3, so you can use S3 Storage + ECSRun. The flow will be downloaded from S# and run on the specified image.