2021-03-09 20:58:11 UTC
182 MB
/opt/openjdk-17
JAVA_VERSION17-ea+10
PATH/opt/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:ba3557a56b150f9b813f9d02274d62914fd8fce120dd374d9ee17b87cf1d277d - 1.47% (2.68 MB)
[#001] sha256:f4b1e51638093d53268f8affa33c76d79b5f585556917511babcc02780047d7b - 0.49% (907 KB)
[#002] sha256:0fccea66d261db26595f6c615d2361af9b26994c460c6b0736185a09e1cb602a - 98.04% (178 MB)
/bin/sh -c #(nop) ADD file:80bf8bd014071345b1c0364eeb0a5e48f3fb0d87f9c31cb990e57caa652b59b8 in /
2021-02-17 21:19:54 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2021-03-09 20:57:21 UTC/bin/sh -c apk add --no-cache java-cacerts
2021-03-09 20:57:21 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/opt/openjdk-17
2021-03-09 20:57:21 UTC/bin/sh -c #(nop) ENV PATH=/opt/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-03-09 20:57:21 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=17-ea+10
2021-03-09 20:58:11 UTC/bin/sh -c set -eux; arch="$(apk --print-arch)"; case "$arch" in 'x86_64') downloadUrl='https://download.java.net/java/early_access/alpine/10/binaries/openjdk-17-ea+10_linux-x64-musl_bin.tar.gz'; downloadSha256='fc3ea4225030a5df6191b6027051e705e6c34b72115dfdb36d170d735cb409d5'; ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; wget -O openjdk.tgz "$downloadUrl"; echo "$downloadSha256 *openjdk.tgz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file openjdk.tgz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm openjdk.tgz*; rm -rf "$JAVA_HOME/lib/security/cacerts"; ln -sT /etc/ssl/certs/java/cacerts "$JAVA_HOME/lib/security/cacerts"; java -Xshare:dump; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; javac --version; java --version
2021-03-09 20:58:11 UTC/bin/sh -c #(nop) CMD ["jshell"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.