From 8c8324b37fc24f3a42e9980b04b858500d3c3c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Tue, 9 Sep 2025 14:55:33 +0200 Subject: [PATCH] Dockerfile.windows: remove deprecated 7Zip4Powershell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `tar` utility is included in Windows 10 (17063+) and Windows Server 2019+ so we can use it directly. Signed-off-by: Paweł Gronowski --- Dockerfile.windows | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile.windows b/Dockerfile.windows index 74bcb725ed..b18e689835 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -258,14 +258,11 @@ RUN ` Remove-Item C:\gitsetup.zip; ` ` Write-Host INFO: Downloading containerd; ` - Install-Package -Force 7Zip4PowerShell; ` $location='https://github.com/containerd/containerd/releases/download/'+$Env:CONTAINERD_VERSION+'/containerd-'+$Env:CONTAINERD_VERSION.TrimStart('v')+'-windows-amd64.tar.gz'; ` Download-File $location C:\containerd.tar.gz; ` New-Item -Path C:\containerd -ItemType Directory; ` - Expand-7Zip C:\containerd.tar.gz C:\; ` - Expand-7Zip C:\containerd.tar C:\containerd; ` + tar -xzf C:\containerd.tar.gz -C C:\containerd; ` Remove-Item C:\containerd.tar.gz; ` - Remove-Item C:\containerd.tar; ` ` # Ensure all directories exist that we will require below.... $srcDir = """$Env:GOPATH`\src\github.com\docker\docker\bundles"""; `