What is the value of $JAVA_HOME with gcr.io/distroless/java
images?
Asked
Active
Viewed 485 times
-1

Niel de Wet
- 7,806
- 9
- 63
- 100
-
1`docker run --rm -it --entrypoint env gcr.io/distroless/java:debug` doesn't show a `JAVA_HOME` and I don't know why it should be set: `java` is the entry point anyway. Just point it at the necessary jars. `JAVA_HOME` is [widely misunderstood](https://stackoverflow.com/questions/69735512/why-can-i-use-javac-java-without-having-java-home-set) and not nearly as necessary as many people think. – Generous Badger Jan 13 '22 at 10:30
1 Answers
0
$JAVA_HOME
is not defined for gcr.io/distroless/java
.
Note, you can find the Java system files at /usr/lib/jvm/java-11-openjdk-amd64/
.

Niel de Wet
- 7,806
- 9
- 63
- 100