2022-04-05 10:21:08 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:8663204ce13b2961da55026a2034abb9e5afaaccf6a9cfb44ad71406dcd07c7b - 1.45% (2.69 MB)
[#001] sha256:e601d4fa60a14c882ae121702306ef6a4a37403f9287fbb904108796905bd8f7 - 0.47% (892 KB)
[#002] sha256:f5a3883616dee8a9177c90a5726519d51c87ada73c9ec02d1016452ab24737ed - 98.08% (182 MB)
/bin/sh -c #(nop) ADD file:b9eae64dc6ab27fdaa048b7cda06fcb5c7655e1b327e098e2775d095cb657b01 in /
2022-04-05 00:20:08 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2022-04-05 10:20:56 UTC/bin/sh -c apk add --no-cache java-cacerts
2022-04-05 10:20:57 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/opt/openjdk-19
2022-04-05 10:20: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-04-05 10:20:57 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=19-ea+5
2022-04-05 10:21:07 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-04-05 10:21:08 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.