docker-compose up -d postgres_airflow
docker-compose run airflow_init
docker-compose up -d airflow_webserver
docker-compose up airflow_scheduler
- web server is exposed on port 9090
- login admin/airflow
- dag_id is
gpu_docker_dag
- task logs can be found in
./logs
- uncomment line in docker-compose
- update docker-py in the airflow_scheduler service:
pip install --upgrade docker>=4.3.0
- run dag
gpu_docker_dag
- task
no_gpu
fails,with_gpu
succeeds