<@ULVA73B9P> when using a Docker Worker, how do I ...
# ask-marvin
b
@Marvin when using a Docker Worker, how do I ensure the containers run with the argument network="host" ?
m
It seems that the Prefect documentation doesn't directly provide the specific details on how to set the
network="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.