Installing Astronomer on your machine is really just the CLI. When you run astro airflow start
, it creates containers, pulls images, and creates volumes etc that can eventually take up some space. A few cleanup methods:
-
You can use
$ docker system prune
to remove all unused objects.- You can specify the --volume flag to prune volumes as well. Here’s is dockers documentation on cleaning up: Prune unused Docker objects | Docker Documentation
-
Run
$ astro dev stop
- If you’re working locally and want to stop all running containers and volumes while maintaining the underlying database, run
astro airflow stop
- The underlying database will persist in the docker volume
- If you’re working locally and want to stop all running containers and volumes while maintaining the underlying database, run
-
Run
$ astro dev kill
- This is the same as
astro airflow stop
but will stop local containers AND prune volumes for that project. It’s forcing a restart as fresh as you can get. - This includes clearing the database entirely (you won’t see prior DAG runs in the Airflow Web UI)
- This is the same as