瀏覽代碼

Merge pull request #43757 from thaJeztah/align_containerd_versions

Dockerfile: use consistent format for CONTAINERD_VERSION
Sebastiaan van Stijn 3 年之前
父節點
當前提交
cceead243e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Dockerfile.windows

+ 2 - 2
Dockerfile.windows

@@ -166,7 +166,7 @@ FROM microsoft/windowsservercore
 SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
 SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
 
 
 ARG GO_VERSION=1.18.3
 ARG GO_VERSION=1.18.3
-ARG CONTAINERD_VERSION=1.6.6
+ARG CONTAINERD_VERSION=v1.6.6
 ARG GOTESTSUM_VERSION=v1.8.1
 ARG GOTESTSUM_VERSION=v1.8.1
 ARG GOWINRES_VERSION=v0.2.3
 ARG GOWINRES_VERSION=v0.2.3
 
 
@@ -259,7 +259,7 @@ RUN `
   `
   `
   Write-Host INFO: Downloading containerd; `
   Write-Host INFO: Downloading containerd; `
   Install-Package -Force 7Zip4PowerShell; `
   Install-Package -Force 7Zip4PowerShell; `
-  $location='https://github.com/containerd/containerd/releases/download/v'+$Env:CONTAINERD_VERSION+'/containerd-'+$Env:CONTAINERD_VERSION+'-windows-amd64.tar.gz'; `
+  $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; `
   Download-File $location C:\containerd.tar.gz; `
   New-Item -Path C:\containerd -ItemType Directory; `
   New-Item -Path C:\containerd -ItemType Directory; `
   Expand-7Zip C:\containerd.tar.gz C:\; `
   Expand-7Zip C:\containerd.tar.gz C:\; `