https://prefect.io logo
Title
b

Brad

04/25/2020, 2:08 AM
Hey team, I’m trying to run the docker agent inside of a docker container but having some troubles - has anyone attmped this?
It’s failing to connect ot my local server, looking for a cloud token instead. How does the agent know to look locally when I run outside of docker? (Also worth noting I am running wiht
net=host
)
forgot myself a
prefect backend server
. Issue resolved
j

Jenny

04/25/2020, 2:22 AM
Ha ha! I was just about to ask if you've tried prefect backend server. Glad you got it resolved.
b

Brad

04/25/2020, 2:26 AM
😆
v

Vikram Iyer

06/30/2020, 5:47 PM
Hey @Brad, I was wondering how you got to run the agent inside a container. Can you share it here?
b

Brad

06/30/2020, 10:06 PM
Hey Vikram - what issues are you seeing?
running the
prefect agent start docker
worked fine for me when I also ran
prefect backend server
v

Vikram Iyer

07/01/2020, 9:21 AM
When I run a flow from the UI, the agent doesn't pick up the flow. Also, when I checked with a
docker ps
, I wasn't able to see a container running.
b

Brad

07/01/2020, 8:46 PM
Sounds like possibly a label issue, check what labels your docker agent has vs what your flow requires in the UI