2022-08-09 21:10:28 UTC
185 MB
/opt/openjdk-19
JAVA_VERSION19-ea+5
PATH/opt/openjdk-19/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 - 1.44% (2.68 MB)
[#001] sha256:b915427458bc94c8d27b2d5b98d76b7eb0074c61b0daf90b4bb19dd0451d901c - 0.48% (917 KB)
[#002] sha256:6b2ef90fa5eab15cc31f40f31d39e4715086230cc2c28c03fff04b93aa1d7406 - 98.07% (182 MB)
/bin/sh -c #(nop) ADD file:2a949686d9886ac7c10582a6c29116fd29d3077d02755e87e111870d63607725 in /
2022-08-09 17:19:53 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2022-08-09 21:09:57 UTC/bin/sh -c apk add --no-cache java-cacerts
2022-08-09 21:09:57 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/opt/openjdk-19
2022-08-09 21:09:57 UTC/bin/sh -c #(nop) ENV PATH=/opt/openjdk-19/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-08-09 21:09:57 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=19-ea+5
2022-08-09 21:10:27 UTC/bin/sh -c set -eux; arch="$(apk --print-arch)"; case "$arch" in 'x86_64') downloadUrl='https://download.java.net/java/early_access/alpine/5/binaries/openjdk-19-ea+5_linux-x64-musl_bin.tar.gz'; downloadSha256='0ee67a41fe97341f131bd4f065ed6092d55c15de5f00f8ba1e57d21eefb2c787'; ;; *) 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
2022-08-09 21:10:28 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.