๐Ÿ”ง ARM Mac + Docker + dbt: Troubleshooting Startup Issues

While setting up Airflow + dbt projects with Docker, you may run into this common error message and its solutions. ๐Ÿ” Problem 1: Platform Architecture Mismatch Error message: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) My Mac is running on ARM (Apple Silicon - M1/M2/M3). The official dbt Docker image is built for amd64 (x86-based). As a result, Docker tries to run cross-architecture using QEMU emulation, which sometimes leads to internal Python path issues โ†’ surfaces as the dbt dbt --version error. This is not a simple dbt bug โ€” the root cause is platform mismatch. ...

May 30, 2025

๐Ÿ”ง Solving Airflow Docker Startup Issues

Common issues you will often encounter when running Airflow with Docker. โ— Issue 1 โ€” .env file is not visible inside Airflow container ๐Ÿ” Symptom Summary The .env file exists at the project root. But inside the Airflow container, load_dotenv() fails to read it. The reason: Docker automatically passes .env as environment variables. But Docker does not copy or mount the file itself into the container. Therefore, load_dotenv() has no file to read. โœ… Solution 1๏ธโƒฃ Add volume mount for .env in docker-compose.yml This way, the .env file becomes available inside the container at the correct path. ...

May 30, 2025