【问题标题】:airflow breeze init failed气流微风初始化失败
【发布时间】:2021-10-14 09:43:35
【问题描述】:

我按照说明初始化微风环境:https://github.com/apache/airflow/blob/main/CONTRIBUTORS_QUICK_START.rst#setting-up-breeze

好像图像已构建但无法启动。我的环境有问题吗?

docker 20.10.9 的好版本。 Python版本:3.8

后端:mysql

无需重建映像:重要文件均未更改

                           Use CI image.

                           Branch name:            main
                           Docker image:           ghcr.io/apache/airflow/main/ci/python3.8
                           Airflow source version: 2.3.0.dev0
                           Python version:         3.8
                           Backend:                mysql 5.7
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/mnt/c/Users/binglilun/source/repos/doowhtron/airflow/scripts/in_container/entrypoint_ci.sh" to rootfs at "/entrypoint" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

【问题讨论】:

  • 您尝试挂载的入口点文件似乎有问题。 ls -l /mnt/c/Users/binglilun/source/repos/doowhtron/airflow/scripts/in_container/entrypoint_ci.sh 有什么用?

标签: docker docker-compose airflow breeze


【解决方案1】:

问题已解决。 在我的 wsl 环境中运行微风的关键是:

  1. 升级到wsl2(我的发行版是ubuntu)
  2. 签出源到 ~/ 而不是 /mnt/c/
  3. 在 wsl2 中运行 docker daemon(不使用 docker destop)
  4. 通过设置 /etc/resolv.conf(putting nameserver 8.8.8.8) 启用 wsl 的网络
  5. docker_v build(_build_images.sh)添加“--network host”参数,否则无法连接互联网
  6. 安装yarn并将“--ignore-engines”添加到yarn install (compile_assets.sh)

现在微风对我有用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-08
    • 2016-03-25
    • 2012-11-17
    • 2017-12-10
    • 2018-09-17
    • 1970-01-01
    相关资源
    最近更新 更多