2026-05-12 23:56:21 UTC
2.19 GB
C:\openjdk-27
JAVA_SHA256c141a4db38b2d45883ed5d65a72f4444d1efa690d650027308594335dec2b07b
JAVA_URLhttps://download.java.net/java/early_access/jdk27/21/GPL/openjdk-27-ea+21_windows-x64_bin.zip
JAVA_VERSION27-ea+21
[#000] sha256:3cc21a1b754848d23f00aa65cb94ec34c9a5dc6028b3aada42039c824738d02f - 63.41% (1.39 GB)
[#001] sha256:857865ad3eca4da109d969134a9cab7225d9de49597914ae325d43661900f513 - 26.97% (604 MB)
[#002] sha256:917dd62015b1447671d0b141b1522081735e979c185e6644bec43931db85c017 - 0.0% (1.29 KB)
[#003] sha256:685041c62f433f307e564c68f0285320efafe328f998e28e9f2b3e2cc0be18f6 - 0.02% (482 KB)
[#004] sha256:842a46936c6c8a785b9526bcbdeb541275878c2fe8e05625db6ca7d0e5919fed - 0.0% (1.26 KB)
[#005] sha256:a25c6b5e0c278b8118655fa6f8cd3f3116a7638e16209fa6f9987ce91997596a - 0.01% (329 KB)
[#006] sha256:60753f8e5193b0cc905edeaf434bd41197c12d05956662123a02fa47f415468f - 0.0% (1.3 KB)
[#007] sha256:75f381e27eac1f2f2ec69ca75cce874b777ddf2ec1b172719897897cbfcafb90 - 0.0% (1.28 KB)
[#008] sha256:1f31a1248789a28678051c1e704764d0790b8cfb9978cea4a09a3a21a55c23ce - 0.0% (1.27 KB)
[#009] sha256:33d958b141b9c9e4a90405251e7d47d8c83b89db2a91d906e2a26abbdd5a31ef - 9.59% (215 MB)
[#010] sha256:20091ec95c2165529715cc029a6cd73fb2010429d0fd7a680a988b7d637a3a6f - 0.0% (1.29 KB)
Apply image 10.0.20348.4294
2026-05-07 03:49:54 UTCInstall update 10.0.20348.5139
2026-05-12 23:39:15 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2026-05-12 23:55:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host 'Enabling TLS 1.2 (https://githubengineering.com/crypto-removal-notice/) ...'; $tls12RegBase = 'HKLM:\\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2'; if (Test-Path $tls12RegBase) { throw ('"{0}" already exists!' -f $tls12RegBase) }; New-Item -Path ('{0}/Client' -f $tls12RegBase) -Force; New-Item -Path ('{0}/Server' -f $tls12RegBase) -Force; New-ItemProperty -Path ('{0}/Client' -f $tls12RegBase) -Name 'DisabledByDefault' -PropertyType DWORD -Value 0 -Force; New-ItemProperty -Path ('{0}/Client' -f $tls12RegBase) -Name 'Enabled' -PropertyType DWORD -Value 1 -Force; New-ItemProperty -Path ('{0}/Server' -f $tls12RegBase) -Name 'DisabledByDefault' -PropertyType DWORD -Value 0 -Force; New-ItemProperty -Path ('{0}/Server' -f $tls12RegBase) -Name 'Enabled' -PropertyType DWORD -Value 1 -Force; Write-Host 'Complete.'
2026-05-12 23:55:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-27
2026-05-12 23:55:59 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; Write-Host 'Complete.'
2026-05-12 23:56:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=27-ea+21
2026-05-12 23:56:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk27/21/GPL/openjdk-27-ea+21_windows-x64_bin.zip
2026-05-12 23:56:01 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=c141a4db38b2d45883ed5d65a72f4444d1efa690d650027308594335dec2b07b
2026-05-12 23:56:20 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 ...'; New-Item -ItemType Directory -Path C:\temp | Out-Null; Expand-Archive openjdk.zip -DestinationPath C:\temp; Move-Item -Path C:\temp\* -Destination $env:JAVA_HOME; Remove-Item C:\temp; Write-Host 'Removing ...'; Remove-Item openjdk.zip -Force; Write-Host 'Verifying install ...'; Write-Host ' javac --version'; javac --version; Write-Host ' java --version'; java --version; Write-Host 'Complete.'
2026-05-12 23:56:21 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.