centos 7環境下:python
mkdir airflow //建立airflow文件夾git
git clone https://github.com/puckel/docker-airflow.git /root/airflow //下載源碼到airflow文件夾github
docker run -d -p 8082:8080 puckel/docker-airflow //安裝並運行airflowdocker
docker exec -it af2044c3b40c bash // 進入容器數據庫
airflow initdb // 初始化數據庫centos
出現錯誤:bash
airflow.exceptions.AirflowException: Could not create Fernet object: Incorrect paddingcode
解決辦法:blog
python -c "from cryptography.fernet import Fernet;get
print(Fernet.generate_key().decode())"
export AIRFLOW__CORE__FERNET_KEY=oNu9XwewQNyx9mAJT2vZvtm3qzPRZIWRqwk9hSVch4A=
以下圖:
airflow initdb // 從新運行初始化數據庫
輸入網址: