https://prefect.io logo
Title
b

Bartek

05/12/2020, 3:30 PM
Hi Is it possible to run prefect agent inside docker?
i

itay livni

05/12/2020, 3:31 PM
Yes. Its actually one of the methods to deploy
Flows
to the cloud
b

Bartek

05/12/2020, 3:36 PM
Ok, I understand that flows can run in docker containers but I asked If AGENT can run inside docker continer
z

Zachary Hughes

05/12/2020, 3:47 PM
Hi @Bartek, you should be able to run an agent anywhere you have Prefect available. This includes containers!
b

Bartek

05/12/2020, 3:52 PM
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

Zachary Hughes

05/12/2020, 3:58 PM
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

Bartek

05/12/2020, 4:11 PM
the logs shows nothing
c

Chris White

05/12/2020, 4:11 PM
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