Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install airflow in docker

Shulou Source: shulou.com Published: 2022-06-02 10:44:24 10月05日 Update

This article introduces you how to install airflow in docker, the content is very detailed, interested friends can refer to, hope to be helpful to you.

In the centos 7 environment:

Mkdir airflow / / create an airflow folder

Git clone https://github.com/puckel/docker-airflow.git / root/airflow / / download the source code to the airflow folder

Docker run-d-p 8082airflow 8080 puckel/docker-airflow / / install and run airflow

Docker exec-it af2044c3b40c bash / / enter the container

Airflow initdb / / initialize the database

An error occurred:

Airflow.exceptions.AirflowException: Could not create Fernet object: Incorrect padding

Solution:

Python-c "from cryptography.fernet import Fernet

Print (Fernet.generate_key () .decode ()) "

Export AIRFLOW__CORE__FERNET_KEY=oNu9XwewQNyx9mAJT2vZvtm3qzPRZIWRqwk9hSVch5A=

As shown below:

Airflow initdb / / rerun the initialization database

Enter the URL:

Http://172.16.10.22:8083/admin/, the effect is as follows:

On how to install airflow in docker to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Content data databases files folders more help run good interests methods containers guys buddies effects effects articles source code environment knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information OPPO Reno Shulou Technology Microsoft Apple