命令'cmd / S / C choco install --no-progress -y curl'返回了非零代码:3221225785

问题描述 投票:0回答:1

我正在使用以下curl在Windows docker映像中使用Chocolatey Dockerfile安装

FROM mcr.microsoft.com/windows/servercore:ltsc2019
ENV chocolateyUseWindowsCompression="true"           
RUN powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
RUN choco install --no-progress -y curl 

此方法运行良好,但是几天以来,由于错误而失败了:

Step 5/8 : RUN choco install --no-progress -y curl    
 ---> Running in 7d1c2e12d931    
Chocolatey v0.10.15    
Installing the following packages:    
curl    
By installing you accept licenses for the packages.     
curl v7.69.0 [Approved]     
curl package files install completed. Performing other installation steps.    
Extracting 64-bit C:\ProgramData\chocolatey\lib\curl\tools\curl-7.69.0-win64-mingw.zip to C:\ProgramData\chocolatey\lib\curl\tools...    
ERROR: 7-Zip signalled an unknown error (code -1073741511) This is most likely an issue with the 'curl' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.    
The install of curl was NOT successful.    
Error while running 'C:\ProgramData\chocolatey\lib\curl\tools\chocolateyInstall.ps1'.    
 See log for details.    
Chocolatey installed 0/1 packages. 1 packages failed.    
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).    
Failures    
 - curl (exited -1073741511) - Error while running 'C:\ProgramData\chocolatey\lib\curl\tools\chocolateyInstall.ps1'.    
 See log for details.    
The command 'cmd /S /C choco install --no-progress -y curl' returned a non-zero code: 3221225785     
C:\Windows\TEMP\cirrus-ci-build>if -1073741511 NEQ 0 exit /b -1073741511     
Exit status: 3221225785    

我尝试使用mcr.microsoft.com/windows:1809更改基本映像,但是失败相同。

此失败的原因可能是什么?

docker docker-for-windows chocolatey
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.