Docker image - expose debug port

Hi @mirceag ,

there should be no need for you do create your own image. try something like this:

docker run -d -p 8000:8000 -p 9000:9000 sonarqube:8.5-community "-Dsonar.web.javaAdditionalOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000"

after that you should be able to connect to connect to the web ui on port 9000 and to the remote debugging interface on port 8000.

jdb -attach 192.168.0.167:8000
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
>

one short hint: don’t use localhost in your connection attempt :wink:

hope that helps

1 Like