You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid interpolation format for command section due to AIRFLOW_UID in docker-compose.yaml 3.0.x #52959
This issue was encountered while running docker-compose up airflow-init on an AWS EC2 instance using Ubuntu 24.04 with Docker Compose v1.29.2.
Starting from Airflow 3.0.x(3.0.0, 3.0.1, 3.0.2), the official docker-compose.yaml includes a command line using $(id -u) to export AIRFLOW_UID. However, docker-compose interprets $(...) as a variable interpolation expression, which leads to the following error:
ERROR: Invalid interpolation format for"command" optionin service "airflow-init: ..."
This breaks the execution of docker-compose up airflow-init, especially when using Docker Compose v2+.
What you think should happen instead?
The command line should be updated to escape the dollar sign, like this:
export AIRFLOW_UID=$$(id -u)
This ensures the expression is evaluated in the container shell instead of being interpreted by Docker Compose.
Alternatively, the documentation can recommend using an .env file to predefine AIRFLOW_UID.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Activity
boring-cyborg commentedon Jul 7, 2025
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
potiuk commentedon Jul 7, 2025
Feel free to fix it
zk2k2 commentedon Jul 7, 2025
Hello can you please assign me this issue? I want to contribute, thanks!
potiuk commentedon Jul 7, 2025
Assigned
jjunier commentedon Jul 7, 2025
Is it okay if I take care of the problem I have? I want to become a contributor.
Or maybe we can work together to solve it.
potiuk commentedon Jul 7, 2025
You can review each-other's code.
zk2k2 commentedon Jul 7, 2025
Hi @givemechocopy sure you found the issue, all yours!