astro dev bash

The behavior and format of this command are the same for both Astro and Software.

Run a bash command in a locally running Docker container for an Airflow component. This command is equivalent to running docker exec -it <container-id>.

Usage

In a locally running Astro project, run:

1astro dev bash

By default, the command execs into the scheduler container and prompts you to run a bash command. To run a command in a different container, you have to specify a different container flag.

Options

OptionDescriptionPossible Values
-p, --postgresRun a bash command in the metadata database containerNone
-s,--schedulerRun a bash command in the scheduler containerNone
-t, --triggererRun a bash command in the triggerer containerNone
-w, --webserverRun a bash command in the webserver containerNone

Examples

1$ astro dev bash --webserver
2$ ls -al
3# View all files in the webserver container
4
5$ astro dev bash --scheduler
6$ pip-freeze | grep pymongo
7# Check the version of the pymongo package running in the scheduler