Skip to content

Docker镜像启动失败:缺少配置文件 #485

@P-Jermy

Description

@P-Jermy

问题描述

使用 docker-compose 启动项目时,aitoearn-channel 容器无法启动。

错误信息

Error: Failed to find configuration file.
at TypedConfigModule.getRawConfig

环境

  • Docker 版本:29.3.0
  • 操作系统:Windows 11 (WSL2)
  • Docker Compose 版本:v5.1.0

复现步骤

  1. git clone https://github.com/yikart/AiToEarn.git
  2. cd AiToEarn
  3. cp env.example .env
  4. docker compose up -d

期望行为

容器应该正常启动。

实际行为

aitoearn-channel 容器启动失败,提示找不到配置文件。

调查发现

  1. Docker 镜像内部没有配置文件
  2. config.js 需要通过 -c 参数指定,但 commander 有冲突 bug
  3. 镜像默认的启动命令缺少配置文件路径

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions