2018-09-13 09:50:47 UTC
3.1 GB
C:\jdk-12
JAVA_SHA256ad3954511fda449a1840ecccfabed877581204eb1f64decd69614af1831cf2c4
JAVA_URLhttps://download.java.net/java/early_access/jdk12/10/GPL/openjdk-12-ea+10_windows-x64_bin.zip
JAVA_VERSION12-ea+10
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 68.41% (2.12 GB)
[#001] sha256:a5b83e25f92aef992a2827d664111b4726ada7d0b13d7af21882734cab96d8d0 - 25.82% (819 MB)
[#002] sha256:fa61e3e01eeaa5482e77157970441ee8c2414720462e140b668a5b58902a78f5 - 0.0% (1.16 KB)
[#003] sha256:f915f46bd201ed77d19fd21bb1a003cd14161bfbc561ddc5846b6981820caf55 - 0.0% (1.16 KB)
[#004] sha256:7d48f952dfc8ea57f78895574e91e37e90226fdfd33520cbc1f91e6de3a753d5 - 0.14% (4.51 MB)
[#005] sha256:f53edce07d01b4f39e00a73228b1a299390a85d84104a824f0fc91a821a1b391 - 0.0% (1.18 KB)
[#006] sha256:2d10a2398863b71c0ef5f48d39b0eaabbbb211fe96d2ff59a4af8cc6286e883d - 0.0% (1.16 KB)
[#007] sha256:74b122cfcaf9706d58ef95e1ea15a9bf3d6df53b06a54fb9a0cc4a19d28c422e - 0.0% (1.16 KB)
[#008] sha256:6f52075b8b86ffe343e2d25a52d1818ccb0b513b6ad91c16896ea51d29fbb8df - 5.63% (178 MB)
[#009] sha256:7c5faae8259917522cc73472767b2a9d44210b1304d15350a64086aed5874b3c - 0.0% (1.17 KB)
Apply image 10.0.16299.15
2018-09-09 17:24:12 UTCInstall update 10.0.16299.665
2018-09-13 09:47:26 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2018-09-13 09:47:27 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\jdk-12
2018-09-13 09:48:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $newPath = ('{0}\bin;{1}' -f $env:JAVA_HOME, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); setx /M PATH $newPath
2018-09-13 09:48:46 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=12-ea+10
2018-09-13 09:48:47 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk12/10/GPL/openjdk-12-ea+10_windows-x64_bin.zip
2018-09-13 09:48:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=ad3954511fda449a1840ecccfabed877581204eb1f64decd69614af1831cf2c4
2018-09-13 09:50:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host ('Downloading {0} ...' -f $env:JAVA_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $env:JAVA_URL -OutFile 'openjdk.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:JAVA_SHA256); if ((Get-FileHash openjdk.zip -Algorithm sha256).Hash -ne $env:JAVA_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; Expand-Archive openjdk.zip -DestinationPath C:\; Write-Host 'Verifying install ...'; Write-Host ' java -version'; java -version; Write-Host ' javac -version'; javac -version; Write-Host 'Removing ...'; Remove-Item openjdk.zip -Force; Write-Host 'Complete.'
2018-09-13 09:50:47 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(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.