2020-12-17 13:16:14 UTC
179 MB
/opt/openjdk-16
JAVA_VERSION16-ea+23
PATH/opt/openjdk-16/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:801bfaa63ef2094d770c809815b9e2b9c1194728e5e754ef7bc764030e140cea - 1.49% (2.67 MB)
[#001] sha256:2e7f0194508bfdf90c2d4c810091723a528db557a8f15dc3342de6f146b13a31 - 0.49% (905 KB)
[#002] sha256:d12c6ae52764c63121af92fc8ae8af14d42a3a2cbbd239516e262a14c7aca7ac - 98.02% (176 MB)
/bin/sh -c #(nop) ADD file:ec475c2abb2d46435286b5ae5efacf5b50b1a9e3b6293b69db3c0172b5b9658b in /
2020-12-17 00:19:42 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2020-12-17 13:15:27 UTC/bin/sh -c apk add --no-cache java-cacerts
2020-12-17 13:15:27 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/opt/openjdk-16
2020-12-17 13:15:28 UTC/bin/sh -c #(nop) ENV PATH=/opt/openjdk-16/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-12-17 13:15:28 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=16-ea+23
2020-12-17 13:16:13 UTC/bin/sh -c set -eux; arch="$(apk --print-arch)"; case "$arch" in x86_64) downloadUrl=https://download.java.net/java/early_access/alpine/23/binaries/openjdk-16-ea+23_linux-x64-musl_bin.tar.gz; downloadSha256=4e1d9054a4407e63fbb74155b247cf3926cffe9491074ace6d8a51d78dd0958d; ;; *) 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
2020-12-17 13:16:14 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.