gpt4 book ai didi

docker - VS Build Tools 不会安装在 windows server 2016 上的 docker 容器中

转载 作者:行者123 更新时间:2023-12-02 19:03:06 26 4
gpt4 key购买 nike

我在关注这个 guide进行一次修改:我使用 ltsc2016 而不是 ltsc2019,因为在 windows server 2016 上你不能拥有 ltsc2019。

一切都顺利到 RUN 阶段:安装程序产生一些输出,然后突然(最后的输出行被截断一半)停止做任何事情。

样本输出:

PS> docker build -t buildtools2019:latest -m 2GB .
Sending build context to Docker daemon 1.291MB
Step 1/6 : FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2016
---> 60b66cbb41a3
Step 2/6 : SHELL cmd /S /C
---> Using cache
---> fd7a0b7ae860
Step 3/6 : ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
Downloading [==================================================>] 1.34MB/1.34MB

---> Using cache
---> 91ea2d1b1299
Step 4/6 : RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --all --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0
---> Running in 2f63ab89f5db
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1028\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\2052\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1029\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1031\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1055\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1046\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1042\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1036\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\3082\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1040\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1045\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1041\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1049\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\HelpFile\1033\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\vs_setup_bootstrapper.exe...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.Diagnostics.Tracing.EventSource.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.VisualStudio.RemoteControl.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Common.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Download.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.VisualStudio.Telemetry.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Microsoft.VisualStudio.Utilities.Internal.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\Newtonsoft.Json.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\zh-Hans\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\zh-Hant\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\tr\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\pt-BR\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\cs\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\fbc497b0c200d3c7418623ae\vs_bootstrapper_d15\es\vs_

最佳答案

这是因为您在 C 驱动器上运行驱动器空间,容器内有 20GB。不幸的是 build不支持指定storage-opt所以我现在不相信这个解决方案。引用这张仍然开放的票(https://github.com/moby/moby/issues/34947)

关于docker - VS Build Tools 不会安装在 windows server 2016 上的 docker 容器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56992563/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com