使用Supervisord管理Docker内的服务,容器启动就退出

问题:启动后直接退出
command: "/usr/bin/supervisord -c /etc/supervisord.conf"

解决方法:
将 supervisor 配置的 nodaemon=false 修改为 nodaemon=true,使 supervisor 以前台的方式运行来维护容器的挂起状态。

具体如下:
[supervisord]
nodaemon=true              ; (start in foreground if true;default false)

  

posted @ 2022-09-19 21:03  lucky_tomato  阅读(233)  评论(0编辑  收藏  举报