Baker
02/27/2024, 6:55 PMMarvin
02/27/2024, 6:56 PMnetwork="host"
configuration for Docker Workers. However, with Docker Workers potentially using infrastructure as code (IaC) patterns such as Kubernetes manifests or ECS task definitions, one approach might involve specifying the desired network mode within the IaC configuration template.
To achieve the Docker container to run with the argument network="host"
, you might have to customize the IaC template to include this configuration, which would then be used to spawn your Docker Workers. Unfortunately, without more concrete details available in the documentation, you may need to consult the Docker documentation or Prefect community for specific examples or further guidance.
For the time being, here are the relevant links to the Prefect documentation I was able to find, though they may not contain the exact answer to your query:
- Developing a new worker type
- Prefect tutorial on workers
You might also look into using other features of Prefect or external tools to template and control Docker container configurations.