https://prefect.io logo
j

Jose Neto

08/10/2023, 4:38 PM
Hello! I currently have a deployment using docker as an infrastructure block. But once that agent receives a job to run, it fails to submit this job for that infrastructure. Could you guys give a hand to resolve that?
Copy code
raise cls(e, response=response, explanation=explanation) from e
docker.errors.APIError: 400 Client Error for <http+docker://localhost/v1.43/containers/create?name=zealous-marten>: Bad Request ("cannot share the host's network namespace when user namespaces are enabled"
16:29:57.583 | INFO    | prefect.agent - Completed submission of flow run '9b0d24b2-0584-4229-9d9d-3f8b754b9e28'
16:29:57.622 | INFO    | prefect.agent - Reported flow run '9b0d24b2-0584-4229-9d9d-3f8b754b9e28' as crashed: Flow run could not be submitted to infrastructure
Hi, guys. As I'm currently using a docker server hosted in a docker container, I had to assign the docker network to my DockerContainer Infrastructure block. Issue solved!
13 Views