Docker 命令';cmd/S/C choco安装-无进展-y旋度';返回非零代码:322225785
我在windows docker映像中使用ChocolateDocker 命令';cmd/S/C choco安装-无进展-y旋度';返回非零代码:322225785,docker,docker-for-windows,chocolatey,Docker,Docker For Windows,Chocolatey,我在windows docker映像中使用Chocolatecurl安装时使用了以下Dockerfile FROM mcr.microsoft.com/windows/servercore:ltsc2019 ENV chocolateyUseWindowsCompression="true" RUN powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-
curl
安装时使用了以下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映像的过程中运行静默msi安装程序时,我收到了相同的错误代码。您是否尝试使用mcr.microsoft.com/windows/servercore:1909作为基本映像?我在Jenkins节点上遇到了相同的问题,但无法在本地重现该问题 这就是为什么我认为这是主机系统的问题 在本地,我运行的是Windows10(1909构建18363.959),一切都很好。 Jenkins节点上有一个“Windows Server 2019(amd64)”系统
- 目前我正在与管理员联系以获取更多信息
使用旧版本“mcr.microsoft.com/dotnet/framework/sdk:4.8-20190709-windowsservercore-ltsc2019”可以工作 我正在使用cirrusci构建映像,它不支持发行版
mcr.microsoft.com/windows/servercore:1909
,但它在cirrusci/windowsservercore:2019
下工作。我不明白什么改变打破巧克力安装