[英]Running a docker image on two windows hosts with different build number
I am running a docker image with base image我正在运行带有基本映像的 docker 映像
tomcat:8.0.51-jre8-alpine
I want to access a rest api service through tomcat.我想通过 tomcat 访问 rest api 服务。 Running the docker image on a host with windows 10 pro build number 1909, the rest api service runs successfully.
在主机上运行Z05B6053C41A21A21A21A21AFD6FC3B158BDA4E6Z图像,带有Z0F4137ED1502B5045D6083AA258B58B5C42Z 10 Pro Build Nubl Nubl Number Number Number Number Number Number 1909,Z65E888888888888888888888888888888888888888888888B.ARS Running the docker image on a host with windows 10 pro build number 1809, the java classes are not getting scanned by jersey.
Running the docker image on a host with windows 10 pro build number 1809, the java classes are not getting scanned by jersey.
com.sun.jersey.api.core.ScanningResourceConfig.logClasses Root resource classes found
line with the java classes initiated never appears in logs. com.sun.jersey.api.core.ScanningResourceConfig.logClasses Root resource classes found
line with the java classes initiated never appears in logs.
Question: Is it possible to have this different behavior of the same docker image on hosts that differ only on the build number of windows?问题:同一 docker 映像是否可能在仅在 windows 内部版本号不同的主机上具有这种不同的行为?
EDIT:编辑:
Finally, it worked by adding最后,它通过添加
FROM tomcat:7.0.103-jdk8-correto
从 tomcat:7.0.103-jdk8-correto
It is weird that the jersey classes were initiated correctly with tomcat 8 or 9 base image on one host and not on others.奇怪的是,jersey 类在一台主机上使用 tomcat 8 或 9 基本映像正确启动,而在其他主机上却没有。 Also, without using dockers, the application runs correctly with tomcat 8 or 9. With tomcat 7 docker image above, docker is running correctly on all hosts.
Also, without using dockers, the application runs correctly with tomcat 8 or 9. With tomcat 7 docker image above, docker is running correctly on all hosts. However, I cannot explain this different behavior per host.
但是,我无法解释每个主机的这种不同行为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.