title: Airflow:Docker-Compose:"You are running pip as root Please use user to run pip"
body: <p>Requirement: To run local Airflow using official docker-compose with Airflow version 2.3.0
  Issue: &quot;You are running pip as root Please use user to run pip&quot;</p>
  <p>Airflow version 2.3.0
  OS - macOS</p>
  <p>I was able to run fine with 2.2.4 but not with 2.3.0</p>
  <p>Also ran the below command too before running <code>docker-compose up airflow-init</code></p>
  <pre><code>mkdir -p ./dags ./logs ./plugins
  echo -e &quot;AIRFLOW_UID=$(id -u)&quot; &gt; .env
  </code></pre>
  <p><a href="https://i.stack.imgur.com/JegCB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JegCB.jpg" alt="enter image description here" /></a></p>
  <p>Docker-Compose
  curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.3.0/docker-compose.yaml'</p>