简体   繁体   English

Windows容器在docker上的运行速度非常慢

[英]Very slow RUN on docker on windows containers

I installed docker on a Windows 10 machine via chocolatey choco install docker-desktop 我通过Chocolatey choco install docker-desktop在Windows 10机器上choco install docker-desktop

Then I have built this image 然后我建立了这张图片

FROM mcr.microsoft.com/windows/servercore:ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

RUN Invoke-WebRequest -UseBasicParsing https://chocolatey.org/install.ps1 | Invoke-Expression

And it runs reasonably fast 而且运行速度相当快

Then I try to run this one 然后我尝试运行这个

FROM chocolatey
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

RUN cinst -y netfx-4.7.2-devpack

After downloading the .net installer the process fails with timeout. 下载.net安装程序后,该过程将超时并失败。 The last thing in the log is Installing dotnetfx... 日志中的最后一件事是Installing dotnetfx...

No idea why and how to debug. 不知道为什么以及如何调试。 Anyone has the same issue? 有人遇到同样的问题吗? Where do I start debugging this issue? 从哪里开始调试此问题?

我对此没有确切的答案,但是我当前的解决方法是使用来自https://hub.docker.com/_/microsoft-dotnet-framework-sdk/的 Microsoft的sdk基本映像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM