Hey guys! Quick question about the DockerRun confi...
# prefect-community
c
Hey guys! Quick question about the DockerRun config. I am running a docker agent on an EC2 instance and have specified a custom image that I have added my flow dependencies to. But keep getting an 404 image not found error(no such image: repo/image_name:tag). This is the same even from prefect core images for a simple test flow. Is there something I could have missed in the agent config?
discourse 1
I am also using GCS storage and building the docker image in CI/CD
m
To ensure it is an issue with your Prefect setup. Can you use a simple
docker run
on that EC2 instance?
upvote 1
a
Can you share more about what your CI/CD process is doing? For example, if this builds an image with a specific tag, then you would need to ensure that the same image tag is set on your
DockerRun
.
Copy code
with Flow(
    FLOW_NAME,
    storage=storage,
    run_config=DockerRun(image="community:latest", labels=["docker"]),
) as flow:
    hw = hello_world()
c
I believe I overlooked some logs.Turns out it was a low storage issue on the EC2 instance and the pull command was hitting an error because of it. Just tested it again and it seem to be working on a test flow. Will circle back if anything else come up. Thanks for the recommendations @Matthias and @Anna Geller.
💪 2
a
Nice work!