2022-01-12 03:18:48 UTC
3.01 GB
v1.22.5
[#000] sha256:18ae6bebe21d13de4442e4cafdf4fbf4e5b0d866afe416f302da087f53f04ae1 - 46.51% (1.4 GB)
[#001] sha256:3aff99b000970ade8766a006338a898f0d5d035a89037044890b777928da56bd - 37.55% (1.13 GB)
[#002] sha256:cdb7ae05484867209f4e8179b1b0279cb5f9363a4ce079c83bbccdb00ed27f8a - 0.0% (1.3 KB)
[#003] sha256:7d938d0bd4869b6884ad5ce78ac6b0006992d817b75797221eced4eec2531c08 - 0.29% (8.85 MB)
[#004] sha256:7c57590c18ee2c0b783194fc0d6df874aae6cc3a7c1017b11397cc95a044d135 - 0.0% (1.26 KB)
[#005] sha256:3b9888ae2199f51597f8f414a7f62853721027f2b0ecd494c274d8c61dc6b45e - 10.78% (333 MB)
[#006] sha256:6858308c6f18537c0d9fbef6ebdf7c049590f3b9aaef58baabb7a193fd545770 - 0.01% (406 KB)
[#007] sha256:e4c0e8bfaf4b188f8cfd864d28fbae8abe917c2efb69a0144a0063bb72f7a7f9 - 2.33% (72 MB)
[#008] sha256:55476aadad975dcba5143950f1f43aca2bc188438b7f49d919752106d5141229 - 0.44% (13.6 MB)
[#009] sha256:7383acc9bae6d02ec5fe8547273a358657dcc41b45e5d1c9a168b73430ce086d - 2.08% (64.2 MB)
[#010] sha256:e23052a1e4d66520e405faa74f7eb2d5a5cd5e7485c9953e8143e42863856119 - 0.0% (2.72 KB)
[#011] sha256:c2262173e605987ac55e9260484c3f3b6867dd4e1a63b821664c81ff2d3db135 - 0.0% (1.26 KB)
[#012] sha256:e2aa26f80b00f811fa94d467763c2898448640f5badad841fece71781c0adc14 - 0.0% (1.29 KB)
[#013] sha256:aebcaf02f289aec4052685511010210fc0460d2c611a0bb8d51ef415c8af3891 - 0.0% (1.26 KB)
[#014] sha256:333e869e88e6c408fa5847e46541fd5948c1059943e06b987525838810cd32c6 - 0.0% (1.28 KB)
Apply image 20H2-RTM-amd64
2022-01-08 08:44:10 UTCInstall update 20H2-amd64
2022-01-12 03:12:37 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2022-01-12 03:13:11 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; if (-not (Get-Command Expand-7Zip -ErrorAction Ignore)) { Install-PackageProvider -Name NuGet -Force -Verbose; Install-Module -Name 7Zip4Powershell -Repository PSGallery -Force -Verbose; if(-not $?) { Write-Error "Failed to install package"; Exit 1; } }
2022-01-12 03:13:12 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV K8S_VERSION=v1.22.5
2022-01-12 03:13:39 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $URL = ('https://dl.k8s.io/{0}/kubernetes-node-windows-amd64.tar.gz' -f $env:K8S_VERSION); function Expand-GZip ($inFile, $outFile) { $input = New-Object System.IO.FileStream $inFile, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([IO.FileShare]::Read); $output = New-Object System.IO.FileStream $outFile, ([IO.FileMode]::Create), ([IO.FileAccess]::Write), ([IO.FileShare]::None); $gzipStream = New-Object System.IO.Compression.GzipStream $input, ([IO.Compression.CompressionMode]::Decompress); try { if (!$input -or !$output -or !$gzipStream) { Write-Error "Failed to Unzip the archive"; Exit 1; } $buffer = New-Object byte[](1024); while ($true) { $read = $gzipstream.Read($buffer, 0, 1024); if ($read -le 0 ) { break; } $output.Write($buffer, 0, $read); } } finally { $gzipStream.Close(); $output.Close(); $input.Close(); } }; Write-Host ('Downloading Kubernetes from {0} ...' -f $URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -UseBasicParsing -OutFile c:\kubernetes.tar.gz -Uri $URL; Write-Host 'Expanding ...'; Expand-GZip c:\kubernetes.tar.gz c:\kubernetes.tar; Expand-7Zip c:\kubernetes.tar c:\; Write-Host 'Complete.'
2022-01-12 03:13:48 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; New-Item -ItemType SymbolicLink -Target "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Path "C:\Windows\System32\WindowsPowerShell\v1.0\pwsh.exe"
2022-01-12 03:18:26 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $URL = 'https://github.com/rancher/azure-cli/releases/download/v0.0.2/dist.azure-cli.zip'; Write-Host ('Downloading azure-cli from {0} ...' -f $URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -UseBasicParsing -OutFile c:\azure-cli.zip -Uri $URL; Write-Host 'Expanding ...'; Expand-Archive -Force -Path c:\azure-cli.zip -DestinationPath c:\azure-cli; Remove-Item -Force -Path c:\azure-cli.zip; Write-Host 'Complete.'
2022-01-12 03:18:35 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Move-Item -Path /kubernetes/node/bin/kubectl.exe -Destination /Windows
2022-01-12 03:18:46 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; New-Item -Force -ItemType Directory -Path /etc; New-Item -Force -ItemType Directory -Path /etc/kubernetes; New-Item -Force -ItemType Directory -Path /etc/kubernetes/bin; Move-Item -Path /kubernetes/node/bin/*.exe -Destination /etc/kubernetes/bin/
2022-01-12 03:18:46 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) COPY file:a25ff59f87ce735ca258824b8e027055fcc5a2f55b5e3e0346de6848ff3fa9ab in \usr\bin\
2022-01-12 03:18:47 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.build-date=2022-01-12T03:08:31Z
2022-01-12 03:18:47 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.schema-version=1.0
2022-01-12 03:18:48 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.vcs-ref=b386a40527922f85a7b840e52a77c16c34700d14
2022-01-12 03:18:48 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.vcs-url=https://github.com/rancher/hyperkube.git
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.