akki commented on issue #7955:
URL: https://github.com/apache/airflow/issues/7955#issuecomment-619555793


   I don't think passing network is currently supported by 
`DockerSwarmOperator`.
   
   Can you find this feature in [Python Docker 
API](https://docker-py.readthedocs.io/en/stable/api.html) ?
   If yes, it should be plausible to support this feature via 
`DockerSwarmOperator` as well.
   
   In general, anything supported by the Python Docker API can theoretically be 
integrated into `DockerSwarmOperator`. For example, support for `tty` was added 
in 
https://github.com/apache/airflow/commit/7ab9e957d3ade7af607b597592b624c9e4951b73.
   
   
   BTW the `network_mode` mentioned in the issue seems to be from the 
[`DockerOperator`](https://github.com/apache/airflow/blob/3c4ca62af11e84fc7c09428642d09055b704c576/airflow/providers/docker/operators/docker.py#L80)
 not the 
[`DockerSwarmOperator`](https://github.com/apache/airflow/blob/3c4ca62af11e84fc7c09428642d09055b704c576/airflow/providers/docker/operators/docker_swarm.py).


----------------------------------------------------------------
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]


Reply via email to