2021-02-01 19:50:19 UTC
181 MB
/opt/openjdk-16
JAVA_VERSION16-ea+32
PATH/opt/openjdk-16/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:4c0d98bf9879488e0407f897d9dd4bf758555a78e39675e72b5124ccf12c2580 - 1.48% (2.68 MB)
[#001] sha256:6f1834e342ac63f74ab268f59b78219089f04f37c6c39e469afc0292192b9c2d - 0.49% (906 KB)
[#002] sha256:78f4563ac5cfaa5b85c77a78809e4a4d118e39ea769eff648554e6b66d21ad3f - 98.03% (177 MB)
/bin/sh -c #(nop) ADD file:0e2d487cd80773e947c8aae6daad3d565b7bb019a954af2b8bff188681c00d81 in /
2021-01-28 23:19:38 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2021-02-01 19:46:23 UTC/bin/sh -c apk add --no-cache java-cacerts
2021-02-01 19:49:51 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/opt/openjdk-16
2021-02-01 19:49:51 UTC/bin/sh -c #(nop) ENV PATH=/opt/openjdk-16/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-02-01 19:49:52 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=16-ea+32
2021-02-01 19:50:18 UTC/bin/sh -c set -eux; arch="$(apk --print-arch)"; case "$arch" in 'x86_64') downloadUrl='https://download.java.net/java/early_access/alpine/32/binaries/openjdk-16-ea+32_linux-x64-musl_bin.tar.gz'; downloadSha256='f9ec3071fdea08ca5be7b149d6c2f2689814e3ee86ee15b7981f5eed76280985'; ;; *) 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-02-01 19:50:19 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.