sealmove opened a new issue, #56029:
URL: https://github.com/apache/airflow/issues/56029

   ### Apache Airflow Provider(s)
   
   docker
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-docker==4.4.2
   
   
   
   
   ### Apache Airflow version
   
   3.0.6
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   I am using a standard docker compose deployment with LocalExecutor. I am 
spawning containers to an external docker swarm cluster using the tcp of the 
cluster manager.
   
   ### What happened
   
   `DockerSwarmOperator` uses  the queries `inspect_container()` which queries 
the local docker daemon of the manager node, and therefore fails when the task 
is run on a worker node:
   
   > NotFound: 404 Client Error for 
http://x.x.x.x:2375/v1.51/containers/f5204cb864c79ba19bab684f792b56f18206b8c3a38a6738e98593ef2b995379/json:
 Not Found ("No such container: 
f5204cb864c79ba19bab684f792b56f18206b8c3a38a6738e98593ef2b995379")
   
   _I replaced the actual ip with x.x.x.x._
   
   ### What you think should happen instead
   
   `inspect_service()` should be used instead of `inspect_container()`
   
   ### How to reproduce
   
   Run a docker swarm cluster with at least 2 nodes and point 
`DockerSwarmOperator` to it.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to