由于某种原因,supervisord无法在执行docker run时启动...如果我注销为supervisord存储配置的路径,我可以清楚地看到该文件存在。
下面是我的Dockerfile中当前未被注释掉的部分。
FROM ubuntu:16.04
MAINTAINER Kevin Gilbert
# Update Packages
RUN apt-get -y update
# Install basics
RUN apt-get -y install curl wget make gcc build-essential
# Setup Supervisor
RUN apt-get -y install supervisor
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord", "-c /etc/supervisor/conf.d/supervisord.conf"]这是我在终端运行后得到的错误。
remote-testing:analytics-portal kgilbert$ docker run kmgilbert/portal
Error: could not find config file /etc/supervisor/conf.d/supervisord.conf
For help, use /usr/bin/supervisord -h发布于 2016-10-23 12:46:40
尝试使用的exec形式
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]或者使用shell形式
CMD /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf根据基础映像使用的操作系统,您可能甚至不必在命令行(see this example或the official documentation)中指定supervisord.conf
发布于 2020-09-14 19:32:00
我在Alpine Linux3.9上也遇到过这种情况,但最终成功地运行了
CMD ["supervisord", "-c", "<path_to_conf_file>"]https://stackoverflow.com/questions/40199439
复制相似问题