V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tonghuashuai
V2EX  ›  Docker

docker-compose 启动的服务自动被退出,大家有遇到过没?

  •  
  •   tonghuashuai ·
    tonghs · Sep 7, 2021 · 1704 views
    This topic created in 1696 days ago, the information mentioned may be changed or developed.

    大概是启动了一个 nginx 一个 web 服务( python + flask + gunicorn ),总是莫名停掉,看了眼报错应该是 docker compose 的错误,网上搜了下没有头绪。web 服务启动着,即使没有任何请求,过几个小时就会报这个错误。

    log 看起来像是没有启动 docker 时使用 docker-compose 启动服务,但我确定 docker 是启动着的(因为另一个 container 一直是在线的)。怀疑像是 gunicorn [ Worker exiting ] 导致的,但也不确定。

    docker-compose.yml 文件: https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932#file-docker-compose-dev-yml

    dev.sh 文件: https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932#file-dev-sh

    退出前的 log: https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932#file-error-log

    https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:15 · PVG 07:15 · LAX 16:15 · JFK 19:15
    ♥ Do have faith in what you're doing.