本文介绍了无法在minishift - OpenShift-Origin中访问正在运行的Docker War of War(with tomcat)的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我已经为一个简单的Java-Spring MVC War文件(Docker Config下面)打了一个docker镜像。我可以运行使用docker运行命令,也没有看到日志中的任何错误或者在Openshift-minishift中将攻击上载到内部注册表中。我可以在我的Openshift-minishift控制台中拉出图像。I have crated a docker image for a simple Java-Spring MVC War file, (Docker Config below). I am able to run the using docker run command and also I do not see any errors in the log or trouble uploading war into internal registry in Openshift-minishift. I was able to pull the image in my Openshift-minishift console.#Docker ConfigFROM tomcat:8.0.20-jre8MAINTAINER ashok.gudise@githubENV CATALINA_HOME /usr/local/tomcatENV PATH $CATALINA_HOME/bin:$PATHRUN mkdir -p "$CATALINA_HOME"WORKDIR $CATALINA_HOMERUN chgrp -R 0 $CATALINA_HOMERUN chmod -R g+rw $CATALINA_HOMERUN find $CATALINA_HOME -type d -exec chmod g+x {} +#RUN mkdir $CATALINA_HOME/app_conf#ADD config $CATALINA_HOME/app_conf/COPY build/libs/distributed-app-1.0.war $CATALINA_HOME/webapps/#RUN sed -i -e 's/^shared.loader=$/shared.loader="${catalina.base}\/app_conf"/' $CATALINA_HOME/conf/catalina.propertiesEXPOSE 8080CMD ["catalina.sh", "run"] - OC命令--OC Commandsoc new-project ext-projectoc login -u adminoc policy add-role-to-user admin ashokgudise ext-projectoc adm policy add-scc-to-group anyuid system:authenticatedoc policy add-role-to-group system:image-puller system:serviceaccounts:extprojectdocker login -u ashokgudise -p XXXXXXXX 111.11.111.11:5000docker push 111.11.111.11:5000/ext-project/dock-img-app:latestdocker tag dist-app:1.0 111.11.111.11:5000/ext-project/dock-img-app:latest 我的pod的tomcat日志中没有看到任何异常的东西或异常,我也可以看到pod的终端爆炸式的战争。I do not see any unusual thing or exceptions in my pod's tomcat logs,also I can see exploded war in the pod's terminal.我无法运行应用程序生成路线I could not able to run the app with generated route,推荐答案最后,我已经解决了我的问题,我看到了类似的问题,我在这里面临 https:// git hub.com/openshift/origin/issues/8702 。Finally I have resolved my issue, I've seen similar kind of issue that I faced here https://github.com/openshift/origin/issues/8702 .我的生成路由器的原因可能是缺少haproxy配置。Reason could be missing haproxy config for my generated router.所以我卸载了我的minishift,并使用 ansible-containerSo I have uninstalled my minishift, and re-installed minishift using ansible-container现在tomcat已经运行起来了!Now tomcat is up and running!!! 这篇关于无法在minishift - OpenShift-Origin中访问正在运行的Docker War of War(with tomcat)的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-28 19:54