This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Issue while connecting to docker daemon from containerized Airflow #19502
Labels
You can continue the conversation there. Go to discussion →
Apache Airflow Provider(s)
docker
Versions of Apache Airflow Providers
apache-airflow-providers-amazon==2.3.0
apache-airflow-providers-celery==2.1.0
apache-airflow-providers-cncf-kubernetes==2.0.3
apache-airflow-providers-docker==2.2.0
apache-airflow-providers-elasticsearch==2.0.3
apache-airflow-providers-ftp==2.0.1
apache-airflow-providers-google==6.0.0
apache-airflow-providers-grpc==2.0.1
apache-airflow-providers-hashicorp==2.1.1
apache-airflow-providers-http==2.0.1
apache-airflow-providers-imap==2.0.1
apache-airflow-providers-microsoft-azure==3.2.0
apache-airflow-providers-mysql==2.1.1
apache-airflow-providers-odbc==2.0.1
apache-airflow-providers-postgres==2.3.0
apache-airflow-providers-redis==2.0.1
apache-airflow-providers-sendgrid==2.0.1
apache-airflow-providers-sftp==2.1.1
apache-airflow-providers-slack==4.1.0
apache-airflow-providers-sqlite==2.0.1
apache-airflow-providers-ssh==2.2.0
Apache Airflow version
2.2.1 (latest released)
Operating System
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
Deployment
Docker-Compose
Deployment details
What happened
Hello, I was trying to connect to docker daemon from a containerized airflow setup. I saw this one issue: #16803 > looking at this, I tired to migrate my Airflow version to 2.2.1 and set mount_tmp_dir=False
I tried to run this using two approaches.
In the first approach, I got this error:
In the second approach, I got this error:
In both the cases, the error similar saying Error while fetching server API version: HTTPConnectionPool.
I am not able to debug further. If you can guide me on how I can fix this issue, that would be of great help!
Thanks.
What you expected to happen
No response
How to reproduce
Setup a ubuntu OS on an EC2 instance. Create an airflow container using airflow version = 2.2.1
Setup docker and docker-compose
Setup tcp access to docker daemon using following commands:
Create a simple docker operator in a dag and run it.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: