m

    Matthew Blau

    1 year ago
    Hello all, I am trialing out Prefect in my organization and am currently trying to use prefect to run existing docker containers. However, I am not finding documentation/tutorials that show how I can run existing built docker images with a prefect flow. I have prefect locally installed and am using the OSS version of it. I am basically wanting to just run the existing container, as is, with prefect. Any suggestions or documentation that I can look at to assist in this goal?
    a

    Alex Cano

    1 year ago
    You might get a better response in the
    #prefect-community
    channel since this one is just about the Prefect Server backend. It sounds like you’re wanting Prefect to orchestrate running existing containers, so you’re going to want to take a look at the
    Docker
    tasks in the task library. You may be specifically interested in this one: https://docs.prefect.io/api/latest/tasks/docker.html#startcontainer There is a good example in the example portion of the docs as well: https://docs.prefect.io/core/examples/functional_docker.html
    m

    Matthew Blau

    1 year ago
    Ah, my mistake. I will take a look at this. That is exactly what I want to do. Have Prefect orchestrate running existing containers.