Hello All, I’m working on the Hybrid model flow ex...
# ask-community
m
Hello All, I’m working on the Hybrid model flow execution with a Docker Agent as flow run executer in individual docker container. Currently I have the Agent up and running on our local docker platform and successfully connected that with the Cloud UI with proper Service Account Key.
Copy code
prefect agent docker start --key "SERVICE_ACCOUNT_KEY" --name "AGENT_NAME"
I was also able to write a simple Flow and register as a docker docker storage. Cloud UI also recognizes the Flow as a registered flow; but upon executing it, I’m getting below error on the Agent:
Copy code
docker.errors.APIError: 400 Client Error for <http+docker://localhost/v1.40/containers/create?name=nickel-okapi>: Bad Request ("invalid IP address in add-host: "host-gateway"")
What am I missing? any troubleshooting I can do?
k
Hey, I think you have the exact same issue as this thread. Maybe try the suggestions there?
Actually, this might be related to this so it may be fixed if you upgrade to 0.15.1
m
Thanks @Kevin Kho, I’m not sure if its my docker setup or what! I was unlucky with my tries.
I have a feeling that the Docker Agent implementation may not be fully tested as well.
k
What Docker version are you on? If you can’t control your Docker version, then downgrading to Prefect 0.14.22 might work.
m
I do have control over Docker!
Here is my docker version
k
I think you might need to bump up the Server version as well to fix this error. The users in the thread fixed with Prefect 0.15.0 and Docker 20.10.4. Do you see the same error though with Prefect 0.15.1?
m
Yes, I have tried Prefect 0.15.1 as well, I’ve got the same issue.
Trying to see if upgrading the server instance would actually help.
k
Chatted with the team. This is the relevant issue