如何在Docker中正确管理带有Supervisord的Apache(httpd)?

时间:2018-02-03 19:57:09

标签: apache docker centos centos6 supervisord

我正在尝试使用Apache(httpd)和PHP 5.3.3构建Docker镜像。该图片基于我制作的CentOS 6 && Supervisord。到目前为止,一切正常,#34;罚款" (这意味着在构建过程中没有问题)但我遇到了Apache和Supervisord的一些问题。为什么?因为我认为基于reynierpm/centos6-supervisord的图像已经启动Apache,然后Supervisord正在尝试做同样的事情。这是我使用docker-compose up启动堆栈时所获得的日志:

webserver_1  | 2018-02-03 19:29:52,882 CRIT Supervisor running as root (no user in config file)
webserver_1  | 2018-02-03 19:29:52,882 INFO Included extra file "/etc/supervisor.d/httpd.conf" during parsing
webserver_1  | 2018-02-03 19:29:52,913 INFO RPC interface 'supervisor' initialized
webserver_1  | 2018-02-03 19:29:52,920 INFO supervisord started with pid 8
webserver_1  | 2018-02-03 19:29:53,923 INFO spawned: 'httpd' with pid 11
webserver_1  | 2018-02-03 19:29:53,928 INFO spawned: 'httpd-reload' with pid 12
webserver_1  | 2018-02-03 19:29:53,964 DEBG 'httpd' stderr output:
webserver_1  | httpd: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2 for ServerName
webserver_1  |
webserver_1  | 2018-02-03 19:29:53,965 DEBG fd 9 closed, stopped monitoring <POutputDispatcher at 41891168 for <Subprocess at 140421355793008 with name httpd in state STARTING> (stderr)>
webserver_1  | 2018-02-03 19:29:53,979 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 41890736 for <Subprocess at 140421355793008 with name httpd in state STARTING> (stdout)>
webserver_1  | 2018-02-03 19:29:53,980 INFO exited: httpd (exit status 0; not expected)
webserver_1  | 2018-02-03 19:29:53,981 DEBG received SIGCLD indicating a child quit
webserver_1  | 2018-02-03 19:29:54,983 INFO spawned: 'httpd' with pid 23
webserver_1  | 2018-02-03 19:29:54,985 INFO success: httpd-reload entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

我创建了一个gist,其中包含Dockerfile和Supervisord读取的httpd.conf文件,我在这里做错了什么?

0 个答案:

没有答案