Hey, I am new with Prefect. When you run a flow us...
# ask-community
s
Hey, I am new with Prefect. When you run a flow using Local Agent, where does the flow and the tasks exactly run? Does it run as a Python process or does it run inside a docker container..? Or where a task/flow will run depend on the type of agent? How can this be configured? Cause when I start the prefect server, several docker containers are run...
k
Hi @Shivam Shrey, for the Local Agent, it creates a new process and runs a flow. If you want to run a Docker container, you should use the Docker Agent. The agent is separate from Server, which is a backend. The agent is responsible for pinging Server and checking if there are flows to execute. Prefect Server does indeed use Docker-compose. Just so you know also, Prefect Cloud comes with 10000 free task runs, which is a lot to get started with.
s
So does that mean, if I use docker agent and DockerRun, the agent will run in a docker container and all the tasks from the flow will also be executed inside this docker container?
k
Yes