guard13 commented on issue #15291:
URL: https://github.com/apache/airflow/issues/15291#issuecomment-1605003054

   Good morning,
   
   I give you the link to my solution which works and allows me to continue 
Airflow either on the Datascientest VM (but it dropped me, while resetting) or 
on my VMWare UBUNTU 20.04
   https://support.datascientest.com/t/airflow-probleme-dinstallation/14687/3
   
   I answer the question myself since I finally managed to launch Airflow in 
docker both on the Datascientest VM and on my own VM (But the DataScientest VM 
let me down this evening)
   On the other hand everything works under 20.04 on VMWare
   
   So the method works on Ubuntu 20.04
   
   The method was therefore very simple:
   1- The version of Docker is no longer compatible with Airflow
   2- The version of Docker Compose is no longer compatible with Airflow
   
   A - So I had to uninstall Docker and reinstall it
   
   sudo apt remove docker docker-engine docker.io containerd runc
   
   sudo apt autoremove
   
   sudo rm -rf /var/lib/docker
   
   sudo apt update
   
   sudo apt install apt-transport-https ca-certificates curl 
software-properties-common
   
   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor 
-o /usr/share/keyrings/docker-archive-keyring.gpg
   
   echo "deb [arch=amd64 
signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] 
https://download.docker.com/linux/ubuntu$(lsb_release -cs) stable" | sudo tee 
/etc/apt/sources.list.d/docker.list > /dev/null
   
   sudo apt update
   
   sudo apt install docker-ce docker-ce-cli containerd.io
   
   docker-v
   
   sudo systemctl status docker
   
   
   
   B- We had to uninstall Docker Compose and reinstall
   
   sudo rm /usr/local/bin/docker-compose
   
   sudo apt install docker-compose
   
   C- Then we follow the command lines of the official Airflow website for 
Airflow in Docker 
(https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html)
   
   docker run --rm "debian:bullseye-slim" bash -c 'numfmt --to iec $(echo 
$(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE))))'
   
   curl -LfO 
'https://airflow.apache.org/docs/apache-airflow/2.6.2/docker-compose.yaml'
   
   mkdir -p ./dags ./logs ./plugins ./config
   
   echo -e "AIRFLOW_UID=$(id -u)" > .env
   
   AIRFLOW_UID=50000
   
   docker compose up airflow-init
   
   docker compose up
   
   AND SURPRISE EVERYTHING WORKS
   We identify ourselves with the username airflow and the password airflow
   
   Courage, it was not easy...
   
   ATTENTION :
   This resets your .env file which will need to be updated (for example for 
mongodb environment variables)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to