Docker

Docker with Spring Boot

Debug application

version: '3.2'
gateway:
    build: gateway
    ports:
    - target: 5004
      published: 5004
      protocol: tcp
      mode: host
    command: "java -Xmx200m -jar '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5004' /app/gateway.jar"

restart docker container

docker-compose up -d --no-deps --build [service]

musl is an implementation of C standard library, lightweight and simpler than glibc (Used in Ubuntu). They are mostly interchangeable.

Edgecase is: musl does not support DNS-over-TCP. Usually single UDP packet (512 bytes) is enough to resolve hostname, until it is not enough and you get random "Unknown host" errors. MORE DETAILS.

Last updated