Hi Is it possible to run prefect agent inside dock...
# prefect-community
b
Hi Is it possible to run prefect agent inside docker?
i
Yes. Its actually one of the methods to deploy
Flows
to the cloud
b
Ok, I understand that flows can run in docker containers but I asked If AGENT can run inside docker continer
z
Hi @Bartek, you should be able to run an agent anywhere you have Prefect available. This includes containers!
b
Yes, I have managed to run prefect agent inside docker. It correctly login to Prefect Cloud but it does not run any flows. I add volume with local flows so it should see them but nothing happens.
z
Are your agent logs indicating that it's not finding any flows to run, or are the logs indicating some sort of error during run execution?
b
the logs shows nothing
c
This sounds like a label issue; flows registered with local storage are auto-labeled with the hostname of the machine which is most likely different within the docker image
upvote 1