Requirement: To run local Airflow using official docker-compose with Airflow version 2.3.0 Issue: "You are running pip as root Please use user to run pip"
Airflow version 2.3.0 OS - macOS
I was able to run fine with 2.2.4 but not with 2.3.0
Also ran the below command too before running docker-compose up airflow-init
mkdir -p ./dags ./logs ./plugins
echo -e "AIRFLOW_UID=$(id -u)" > .env
Docker-Compose curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.3.0/docker-compose.yaml'