Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I am using "FROM tomcat:9-jre8" in my dockerfile and then configure and build upon it.
The image starts but tomcat fails to start with the error
I have had this working before but I see that the image was updated 5 days ago and it now seems to cause this issue.
Any help would be great
Are you running 64-bit Java?
$ docker run -dit --rm --name tomcat -e CATALINA_OPTS="-Xms4096m -Xmx4096m" tomcat 2b554c1d0c337cd00470a17ed5d22d45906ce99498978417117312395fd8b80a $ docker exec -it tomcat bash root@2b554c1d0c33:/usr/local/tomcat# apt update && apt install -y procps . . . root@2b554c1d0c33:/usr/local/tomcat# echo $(ps -p 1 -o args) COMMAND /docker-java-home/jre/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms4096m -Xmx4096m -Dignore.endorsed.dirs= -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start
If you want you could use an archive of the old image that worked for you
Hi and thanks for the reply.
I tried the following.
and following your other cmds I could see that the options were set correctly.
2: I created a new docker image from tomcat:9-jre8 as mentioned before and simply added the setenv.sh
Next I tried
I'm really not sure what is going on.