Debugging Tomcat in Docker container
This is the command I use for this: docker run -it –rm \ -e JPDA_ADDRESS=8000 \ -e JPDA_TRANSPORT=dt_socket \ -p 8888:8080 \ -p 9000:8000 \ -v D:/tc/conf/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml \ tomcat:8.0 \ /usr/local/tomcat/bin/catalina.sh jpda run Explanation -e JPDA_ADDRESS=8000debugging port in container, passed as environment variable -e JPDA_TRANSPORT=dt_sockettransport type for debugging as socket, passed as environment variable -p … Read more