mbarkhau commented on issue #8418: URL: https://github.com/apache/airflow/issues/8418#issuecomment-766695311
I've looked through the code of the DockerOperator and from what I can tell, the `network_mode` parameter is passed through to the `network_mode` parameter of [`APIClient.create_host_config`](https://docker-py.readthedocs.io/en/stable/api.html#docker.api.container.ContainerApiMixin.create_host_config) method: From the source code at `docker/api/container.py`(https://github.com/docker/docker-py/blob/master/docker/api/container.py#L443): ``` def create_host_config(self, *args, **kwargs): """ ... network_mode (str): One of: - ``bridge`` Create a new network stack for the container on the bridge network. - ``none`` No networking for this container. - ``container:<name|id>`` Reuse another container's network stack. - ``host`` Use the host network stack. This mode is incompatible with ``port_bindings``. ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
