Hi,
Attaching to Keycloak can be done in (at least) two ways:
This way is documented in standalone.sh, to which all CMD options are passed:
docker run -p 8080:8080 -p '8787:8787' jboss/keycloak -b 0.0.0.0 --debug '*:8787'
And this way - it has a not-documented-in-standalone.sh smell, but is more docker-y:
docker run -e DEBUG=true -e DEBUG_PORT='*:8787' -p 8080:8080 -p '8787:8787' jboss/keycloak
A) Would a PR documenting how to attach a debugger be considered?
B) Which variant would you prefer in a PR?
If I don't hear anything to the contrary, I'll create a JIRA issue for this, and post a PR using the --debug approach, since it is documented in standalone.sh, even though I personally prefer the envs approach.
Sincerely,
Peter