Instalando Docker em um WSL 2 com Ubuntu 22.04
Before start the installation process, make sure you meet the following prerequisites:
- A Windows 10 operating system with WSL 2 support.
- WSL 2 enabled.
- Ubuntu 22.04 installed on WSL 2.
| One problem when trying to debug a Java application running inside a Docker container is: | |
| You can't expose an additional port when re(starting) a Docker container. | |
| Here are the steps I used to create a remote debugging session for Planets: | |
| In our scenario we can't simply override the Dockerfile CMD or pass an environment variable JAVA_OPTS to enable remote debugging. | |
| So we have to "enter" the container with exec and add the JAVA_OPTS to the start script there: |