Docke deploy tomcat, / lib64 / LD linux-x86-64 so. 2. How to solve the problem if it cannot be found?

Alibaba cloud Q & A 2022-02-13 06:13:19 阅读数:36

docke deploy tomcat lib64 lib

The following is Dockerfile

FROM centos:7MAINTAINER lypRUN mkdir -p /usr/local/javaRUN mkdir -p /usr/local/tomcatADD ./jre-8u301-linux-x64.tar.gz /usr/local/javaADD ./apache-tomcat-9.0.52.tar.gz /usr/local/tomcatENV JAVA_HOME /usr/local/java/jre1.8.0_301ENV CATALINA_HOME /usr/local/tomcat/apache-tomcat-9.0.52ENV CATALINE_BASE /usr/local/tomcat/apache-tomcat-9.0.52ENV PATH $JAVA_HOME/bin:$PATH:$CATALINA_HOME/bin:$CATALINA_HOME/libEXPOSE 8080CMD /usr/local/tomcat/apache-tomcat-9.0.52/bin/startup.sh && tail -F /usr/local/tomcat/apache-tomcat-9.0.52/logs/catalina.out



Take the answer 1:

Hello! , The essence is that the distribution version is different from centos. This sentence uses aarch64 Not at all x86_64. You can java Change the version Change it to jdk-8u301-linux-aarch64.tar.gz Or install the corresponding version of the library file .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130613169896.html