Skip to content

Instantly share code, notes, and snippets.

@dehsilvadeveloper
dehsilvadeveloper / 0_prerequisites.md
Last active February 2, 2026 04:51
Installing Docker on WSL 2 with Ubuntu 22.04

Installing Docker on WSL 2 with Ubuntu 22.04

Instalando Docker em um WSL 2 com Ubuntu 22.04

Prerequisites

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.
@telekosmos
telekosmos / txt
Created April 14, 2017 08:37
Remote Debugging a Java Application Inside a Docker Container
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: