Alpine image variants pick up JDK_JAVA_OPTIONS twice #546
Labels
alpine-linux
bug
Something isn't working
help wanted
Extra attention is needed
keep
This label can be applied to prevent the Stale bot from closing it after a period of inactivity
Please provide a brief summary of the bug
The *-alpine images I've tested for both JDK 11 and 18 pick up the value for JDK_JAVA_OPTIONS twice. In some cases this is harmless but if you specify options that are not permitted to be provided multiple times (such as for debugging) the process fails to start.
Please provide steps to reproduce where possible
One liner to test this:
docker run -e JDK_JAVA_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" -it --rm eclipse-temurin:18-jre-alpine java -version
Expected Results
Expected the JVM to start normally.
Actual Results
What Java Version are you using?
openjdk version "18.0.1" 2022-04-19 OpenJDK Runtime Environment Temurin-18.0.1+10 (build 18.0.1+10) OpenJDK 64-Bit Server VM Temurin-18.0.1+10 (build 18.0.1+10, mixed mode, sharing). Also appears with JDK 11.
What is your operating system and platform?
No response
How did you install Java?
No response
Did it work before?
No response
Did you test with other Java versions?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: