简体   繁体   English

在具有不同内部版本号的两台 windows 主机上运行 docker 映像

[英]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:编辑:

  1. docker-compose file is here docker-compose 文件在这里

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.

相关问题 在不同的Docker主机上运行时,什么可能导致带有Rocket应用程序的Docker映像使用非常不同的内存? - What could cause a Docker image with a Rocket application to use very different memory when running on different Docker hosts? 链接运行在不同主机上的Docker容器? - Link Docker containers running on different hosts? 如何在两个不同主机上运行的两个Docker容器之间进行通信? - How to make communication between two docker containers running on two different hosts? 在不同主机上的Docker中运行cron的问题 - Issues running cron in Docker on different hosts 如何在“docker build”期间更新 Docker 映像中的 /etc/hosts 文件 - How to update /etc/hosts file in Docker image during "docker build" 运行相同 docker 命令的两台主机之间的差异 - Discrepancy between two hosts running the same docker commands 如何为在不同主机上运行的Docker容器获取共享文件系统? - How to get Shared file system for docker containers running on different hosts? 如何在运行到Docker的Jenkins中构建Docker映像? - How to build docker image in Jenkins running into docker? Docker,通信两个容器不同的主机同一个网络 - Docker, Communicate Two Containers Different Hosts Same Network docker containers静态IP,用于通信两个不同的主机 - docker containers static IP to communicate two different hosts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM