问题描述
我正在尝试使用容器内的主管启动apacheDS服务。 容器的基本映像是Red Hat Enterprise。但是失败还在继续。 下面是错误详细信息以及安装文件。
Dockerfile:
#Used admin as a Base image
FROM FROM rhel7.6:latest
USER root
ADD artifacts/apacheds-2.0.0-M24.tar.gz /opt/
RUN yum update -y \
&& yum install python-setuptools -y clean all \
&& yum install zip unzip -y \
&& yum install libaio -y \
&& easy_install supervisor
RUN ls -l /opt/ \
&& chown -R myuser:mygroup /opt/apacheds-2.0.0-M24 \
&& chmod -R 755 /opt/apacheds-2.0.0-M24 \
&& ls -l /opt/apacheds-2.0.0-M24/bin/
RUN yum -y install rsyslog
RUN chmod -R 755 /etc/rsyslog.conf
ADD runner.sh /runner.sh
#ADD supervisor-3.0a7.tar.gz /
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
USER root
RUN chown sequser:seqgrp /runner.sh \
&& chmod u+rx /runner.sh
#USER sequser
CMD /runner.sh
runner.sh
#!/bin/sh
supervisord -c /etc/supervisor/conf.d/supervisord.conf
supervisord.conf
[supervisord]
nodaemon=true
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=debug ; info,debug,warn,trace
pidfile=/var/run/supervisord.pid ; pidfile location
user=sequser ; default user
childlogdir=/var/log/supervisord/ ; where child log files will live
[program:apache-ds]
command=/opt/apacheds-2.0.0-M24/bin/apacheds.sh start
错误:
2020-09-07 06:44:26,552 DEBG fd 8 closed,stopped monitoring <POutputdispatcher at 139963968782064 for <Subprocess at 139963971423696 with name apache-ds in state STARTING> (stderr)>
2020-09-07 06:44:26,553 DEBG fd 6 closed,stopped monitoring <POutputdispatcher at 139963968728888 for <Subprocess at 139963971423696 with name apache-ds in state STARTING> (stdout)>
2020-09-07 06:44:26,553 INFO exited: apache-ds (exit status 0; not expected)
2020-09-07 06:44:26,553 DEBG received SIGCLD indicating a child quit
2020-09-07 06:44:28,557 INFO spawned: 'apache-ds' with pid 46
2020-09-07 06:44:28,627 DEBG fd 8 closed,stopped monitoring <POutputdispatcher at 139963968811160 for <Subprocess at 139963971423696 with name apache-ds in state STARTING> (stderr)>
2020-09-07 06:44:28,628 DEBG 'apache-ds' stdout output:
ApacheDS is already running as 16
2020-09-07 06:44:28,628 DEBG fd 6 closed,stopped monitoring <POutputdispatcher at 139963968782208 for <Subprocess at 139963971423696 with name apache-ds in state STARTING> (stdout)>
2020-09-07 06:44:28,628 INFO exited: apache-ds (exit status 0; not expected)
2020-09-07 06:44:28,628 DEBG received SIGCLD indicating a child quit
2020-09-07 06:44:31,633 INFO spawned: 'apache-ds' with pid 59
2020-09-07 06:44:31,646 DEBG 'apache-ds' stdout output:
ApacheDS is already running as 16
2020-09-07 06:44:31,646 DEBG fd 8 closed,stopped monitoring <POutputdispatcher at 139963968811592 for <Subprocess at 139963971423696 with name apache-ds in state STARTING> (stderr)>
2020-09-07 06:44:31,646 DEBG fd 6 closed,stopped monitoring <POutputdispatcher at 139963968811160 for <Subprocess at 139963971423696 with name apache-ds in state STARTING> (stdout)>
2020-09-07 06:44:31,646 INFO exited: apache-ds (exit status 0; not expected)
2020-09-07 06:44:31,647 DEBG received SIGCLD indicating a child quit
2020-09-07 06:44:31,647 INFO gave up: apache-ds entered FATAL state,too many start retries too quickly
^C2020-09-07 06:44:34,788 WARN received SIGINT indicating exit request
注意:ApacheDS在没有管理员的非容器模式下工作。使用管理程序背后的原因是我想在容器内运行多个进程。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)