運行我有一個簡單Centos6碼頭工人像一個簡單的Centos的圖像:OpenShift3 Pro不運行的本地上minishift
FROM centos:6
MAINTAINER Simon 1905 <[email protected]>
RUN yum -y update && yum -y install httpd && yum clean all
RUN sed -i "s/Listen 80/Listen 8080/" /etc/httpd/conf/httpd.conf && \
chown apache:apache /var/log/httpd && \
chmod ug+w,a+rx /var/log/httpd && \
chown apache:apache /var/run/httpd
RUN mkdir -p /var/www/html && echo "hello world!" >> /var/www/html/index.html
EXPOSE 8080
USER apache
CMD /usr/sbin/httpd -D FOREGROUND
我可以在本地運行這個和它推送到hub.docker.com。如果我然後進入本地運行的Redhat OpenShift容器開發人員工具包(CDK)的Web控制檯,並從dockerhub部署圖像,它工作正常。如果我進入OpenShift3 Pro網絡控制檯,該吊艙會進入崩潰循環。控制檯或命令行上沒有日誌來診斷問題。任何幫助非常感謝。
要想看看它是否只是Centos7的問題,我將第一行更改爲centos:7
,它再一次適用於minishift CDK,但不適用於OpenShift3 Pro。它確實表明莢的日誌選項卡上的東西:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.128.2.55. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00058: Error retrieving pid file /run/httpd/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
我只是想改變的第一行是'從CentOS的:7',並再次它在本地CDK上工作但失敗,但日誌選項卡實際上說有用: – simbo1905