Fina Silva-Santisteban

02/09/2021, 11:33 PM
Hi Prefect community! We’re using prefect cloud as backend, Docker Storage which uses a local Dockerfile and the prefect docker agent which uses the local image created by that local Dockerfile. We’ve created an AWS ECR Repository to store the image and I’d like to use that instead of the local one. I had the impression that I could do that by removing Docker Storage’s
argument and adding a
param, but that doesn’t work and if I keep both params it tries to push the image to the ECR repo which I don’t want. What’s the right setup for this case?
I found a helpful explanation of storage and run config in this thread: So going by this logic, it should be possible to set the Storage object’s source to my image hosted on the ECR Repository, correct? Is it that I’m using the wrong Storage class? But DockerStorage seems to be the only one to be able to handle flows inside a Docker container. 🤔
Update on my problem in case anybody else has the same issue! The registry url to pull an image needs to be given by using the
param, and not the
param. E.g:
Copy code = Docker(base_image="<|>")
😓 1