Apache Karaf 4 debug in Docker container

I have a karaf based application that runs inside a docker container.
In karaf 3, when I started the app with the debug flag the debugging server was listening on:

tcp        0      0 0.0.0.0:5005            0.0.0.0:*               LISTEN      1/java

After I moved to karaf 4 it is listening on:

tcp        0      0 127.0.0.1:5005          0.0.0.0:*               LISTEN      55/java

Becuase of that the server won’t listen for connection arriving from my IDE.

Anyone knows how to configure karaf to start the server on 0.0.0.0 instead of 127.0.0.1?

Thanks in advance

Source: StackOverflow