A Free Airflow Playground: Learn Apache Airflow With Just Docker
Short answer: use the Airflow Lab on Data Utility. It is free. You install Docker Desktop and run two commands, and you get Apache Airflow 3 with PySpark, a code editor in your browser, the real Airflow UI and the real Spark UI, and 11 short lessons from your first DAG to a Spark job inside a DAG. No cloud account, no Compose file to edit, nothing else to install.
What you get
- **Airflow 3** with the scheduler, the DAG processor, the triggerer and the real Airflow UI on `localhost:8080`.
- **PySpark** in the same container, with the real Spark UI on `localhost:4040`.
- **An IDE in the browser** with two folders: `dags/` for Airflow DAGs and `code/` for your own Python and Spark code.
- **Test DAG, Trigger and Run file buttons**, a DAGs tab with the task graph, and the log of every task.
- **11 lessons**, each one a DAG you can run, change and run again.
Start in three steps
1. Install Docker Desktop and start it.
2. Open the Airflow Lab and run these two commands in a terminal. The first one builds the image, the second one starts the lab and prints a token.
docker build -t datautility-airflow-lab https://datautility.in/airflow-lab.tar.gz
docker run --rm --name airflow-lab -p 127.0.0.1:8769:8769 -p 127.0.0.1:8080:8080 -p 127.0.0.1:4040:4040 -v datautility-airflow-data:/workspace datautility-airflow-lab3. Paste the token into the page, click Connect, and pick lesson 1.
The 11 lessons
| Track | Lessons | |---|---| | Airflow basics | Your first DAG, Dependencies, TaskFlow and XCom, Schedules and catchup, Retries | | Going further | Branching, Dynamic task mapping, Task groups | | Airflow + Spark | Run a Spark job, Spark inside a DAG, Call your own Python |
Test DAG or Trigger?
**Test DAG** runs the whole DAG once, here in the terminal, without the scheduler. It is the fastest way to check your code. **Trigger** hands the DAG to the scheduler, like a real run, so you can watch it in the Airflow UI and read each task log. Use Test DAG while you write and Trigger when you want to see how Airflow really runs it.
What this is not
It is a learning lab in one container, not a production setup. It does not show you how to run Airflow with Celery workers or on Kubernetes. For that, read the official docs. What it does show you is the part people struggle with first: how DAGs, tasks, schedules, retries and dependencies actually behave.
Your DAGs stay on your computer
The lab runs in Docker on your machine, and the page talks only to `localhost`. Your DAGs and code live in a Docker volume, so they are still there after you stop the lab.
Where to go next
Write your first DAG, then run a Spark job from a DAG. If you want the official reference, the [Airflow 101 tutorial](https://airflow.apache.org/docs/apache-airflow/stable/tutorial/fundamentals.html) is the best place to read alongside the lab.
Related tool pages
- Learn Apache Airflow Free: Hands-On Airflow Lab: Practise Apache Airflow hands-on, free: DAGs, dependencies, TaskFlow, schedules, retries, branching and mapping, with 11 lessons and the real Airflow UI on your laptop.
Also try
How to use the Airflow Lab: step by step
- Install Docker Desktop
- Run the Set up and Start commands from the Airflow Lab page
- Paste the token and connect
- Pick lesson 1 and press Test DAG
When to use the Airflow Lab
- Learning Airflow before a new data engineering job
- Practising for an Airflow interview
- Teaching Airflow to a team without cloud accounts
- Trying a DAG change safely before it goes near production
Example
Input: a DAG that cleans data, runs a Spark job and lists the result
Output: Task states in the lab, the DAG in the Airflow UI, the job in the Spark UI
Frequently asked questions
Is there a free Airflow playground?
Yes. The Airflow Lab on datautility.in runs Airflow 3 with PySpark in Docker on your own computer, with 11 lessons. It is free and needs no account.
What do I need to install to learn Airflow?
Only Docker Desktop. The lab brings Airflow, Java and PySpark, so you do not install them yourself.
Can I use the real Airflow UI?
Yes. The lab starts the real Airflow UI on localhost:8080, and a DAGs tab in the page shows the graph and the task logs too.
Is this a good way to prepare for an Airflow interview?
It is a good way to build the hands-on part: schedules, catchup, retries, branching and mapping. Pair it with the interview questions guide to practise explaining them.
Tip: Tick Keep Spark UI open before you run a Spark file, then press the Spark UI button. The page is only there while the job runs.