Hi I am running Docker Desktop and run an image in the container. I want to be able to debug the java app that is running in the container using eclipse remote debugging using port 8000. Below is my command to run the container and enable debugging:
docker container run -p 8080:8080 -v “volume:/data/” -d --name “image name” -e -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,server=y,suspend=y nexus:19999/image from nexus
Had to modify this going from Linux to Windows 10. I am able to debug in a Linux env. Needed to run docker on windows for multi environments.
When I try to remote debug inside eclipse using localhost as the host and port 8000 as the debug port I can’t seem to connect to the port, I get a connection refused. I tried using the VEthernet(WSL) IP address but that didn’t seem to work either.
Is there an option I am missing to expose all ports within the docker container that will allow me to hit the debug port.