docker-library/tomcat

can not setup ajp with this docker

danilocubrovic opened this issue · 4 comments

What's best practice for using this docker with ajp?
I have tried changing manually server.xml to enable ajp and it starts ok.
But even than I can not expose 8009 to other dockers. I tested with telnet too and I can connect to 8080 from other docker but not to 8009.
From inside tomcat docker I can connect to both ports and log says ajp is started...

One more thing. From log I see that when starting handler for ajp adds 127.0.0.1 as identifier.
07-Mar-2020 10:39:36.074 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 07-Mar-2020 10:39:36.079 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-127.0.0.1-8009"]

I manage it to work with docker image tomcat:8.0-jre8 out of box
If anyone can help to make it work with some of the tomcat 9 image it will be great to hear.

You could try asking over at Stack Overflow or the Docker Community Forums. These repos are more for issues with the image

I can not expose 8009 to other dockers.

Container to container connectivity doesn't need an expose or port forward, they just need to be on the same Docker network

Going to close since this doesn't seem to be an issue with the image

If it is an issue in the way we package Tomcat then a minimal reproducer would help quite a bit with probing for what's wrong