Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 无法使用supervisor启动Apache DS_Docker_Dockerfile_Supervisord_Apacheds - Fatal编程技术网

Docker 无法使用supervisor启动Apache DS

Docker 无法使用supervisor启动Apache DS,docker,dockerfile,supervisord,apacheds,Docker,Dockerfile,Supervisord,Apacheds,我正在尝试使用容器内的一个主管启动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 inst

我正在尝试使用容器内的一个主管启动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
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
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
错误:

#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
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
2020-09-07 06:44:26552 DEBG fd 8关闭,停止监测
2020-09-07 06:44:26553 DEBG fd 6关闭,停止监测
2020-09-07 06:44:26553信息已退出:apache ds(退出状态0;未预期)
2020-09-07 06:44:26553 DEBG收到SIGCLD指示孩子退出
2020-09-07 06:44:28557信息衍生:带有pid 46的apache ds
2020-09-07 06:44:28627 DEBG fd 8关闭,停止监测
2020-09-07 06:44:28628解包“apache ds”标准输出:
ApacheDS已经以16位运行
2020-09-07 06:44:28628 DEBG fd 6关闭,停止监测
2020-09-07 06:44:28628信息已退出:apache ds(退出状态0;未预期)
2020-09-07 06:44:28628 DEBG收到SIGCLD指示孩子退出
2020-09-07 06:44:31633信息衍生:带有pid 59的apache ds
2020-09-07 06:44:31646解压“apache ds”标准输出:
ApacheDS已经以16位运行
2020-09-07 06:44:31646 DEBG fd 8关闭,停止监测
2020-09-07 06:44:31646 DEBG fd 6关闭,停止监测
2020-09-07 06:44:31646信息已退出:apache ds(退出状态0;未预期)
2020-09-07 06:44:31647 DEBG收到SIGCLD指示孩子退出
2020-09-07 06:44:31647信息放弃:apache ds进入致命状态,太多启动重试太快
^C2020-09-07 06:44:34788收到指示退出请求的警告信号
注意:ApacheDS在没有主管的情况下以非集装箱模式工作。我希望在容器内运行多个进程的原因