Docker Error running `astro airflow start`: `Invalid argument "lds-2-.0/airflow:latest" for "-t, --tag" flag: invalid reference format`


When running the command – “astro airflow start” It fails with the following error:

Invalid argument "lds-2-.0/airflow:latest" for "-t, --tag" flag: invalid reference format


Docker can be tricky with what it accepts as names and such - make sure your folder name follows the correct syntax. E.g. you’ll see this error if you include “-” as part of the folder-name, as it’s non-supported character for docker build –tag name.

Some more docker commands you might find helpful:

docker ps - List all running containers
docker logs $CONTAINER_ID -f - Trail logs from one of the containers, really helpful when writing plugins/debugging DAGs.
docker exec -it $CONTAINER_ID bash - Jump inside the docker container. This will let you see what was actually built in the container, print environment variables, and anything else of the sort.

We open source all of our docker images, you can check them out here:
(with full source code here)