Category : dockeroperator

When running command docker run -v AirflowData:/data ds-model:0.0.1-1 python src/FetchTestUsers.py from terminal exit status is 0, but when I try to run command from a DockerOperator exit status is 1. task_1=DockerOperator( task_id=’docker_task’, image=’ds-model:0.0.1-1′, command=’python3 src/FetchTestUsers.py’, volumes=[‘AirflowData:/data’], docker_url="unix://var/run/docker.sock", network_mode="bridge" ) Any idea how can I fix this? Source: Docker..

Read more

I am very new to Docker + Airflow. Below is what I am trying to accomplish. I have 4 services as shown in the below compose file. 3 are relevant to Airflow and one as a test Ubuntu instance. The Airflow related containers: airflow-database, airflow-webserver, airflow-scheduler are able to communicate with each other and I ..

Read more