- Active branches:
master- Latest Java, currently version 12java11- Java 11java8- Java 8
- Deprecated:
java10java9java7
-
Install Docker.
-
Go to
<os>/jdk/, rundocker build -t <image_name:tag> ., you can use your favorite image and tag name. -
Test the image you built,
docker run -it --rm <image_name:tag> java -version.
sgrio/java provides several tagged images:
- Default
- Java 12
- Java 11
- Java 8
server_jre_8: pointed to
sgrio/java:server_jre_8_alpineserver_jre_8_alpine:
Oracle Java SE Server Runtime Environment 8 update 202 build 08on top of Alpine Linuxserver_jre_8_centos:
Oracle Java SE Server Runtime Environment 8 update 202 build 08on top of CentOSserver_jre_8_ubuntu:
Oracle Java SE Server Runtime Environment 8 update 202 build 08on top of Ubuntujre_8: pointed to
sgrio/java:jre_8_alpinejre_8_alpine:
Oracle Java SE Runtime Environment 8 update 202 build 08on top of Alpine Linuxjre_8_centos:
Oracle Java SE Runtime Environment 8 update 202 build 08on top of CentOSjre_8_ubuntu:
Oracle Java SE Runtime Environment 8 update 202 build 08on top of Ubuntujdk_8: pointed to
sgrio/java:jdk_8_alpinejdk_8_alpine:
Oracle Java SE Development Kit 8 update 202 build 08on top of Alpine Linuxjdk_8_centos:
Oracle Java SE Development Kit 8 update 202 build 08on top of CentOSjdk_8_ubuntu:
Oracle Java SE Development Kit 8 update 202 build 08on top of Ubuntu