Windows Server 2016容器(核心操作系统)上的DNXCore5应用程序缺少libuv [英] DNXCore5 App on Windows Server 2016 Container (Core OS) missing libuv
问题描述
我已经设置了一个Windows Server Core OS容器,并在其上手动安装了ASP.NET 5。 一切似乎都很好,除非我去运行kestrel.cmd脚本来运行我的应用程序,我收到以下错误,
I have setup a Windows Server Core OS container and installed ASP.NET 5 manually on it. All seems to be fine, except when I go to run the kestrel.cmd script to run my app, I get the following error,
"无法加载libuv"
"unable to load libuv"
所以我的问题是,我如何在Windows上使用PowerShell安装它?
So my question is,how on earth do I install this with PowerShell on Windows?
推荐答案
看起来你遇到了我们在构建时遇到的同样问题// Build的主题演讲,我喜欢这个故事,因为它正是容器是如此强大的工具......
Libluv有依赖关系在C ++运行时(msvcr120.dll)上它没有正确表达,因为C ++运行时是作为Visual Studio的一部分安装的甚至远程调试
工具该应用程序也适用于大多数系统。
但是,当您尝试部署到容器中时,它本身不是操作系统的一部分,因此不存在依赖关系并且繁荣。
要修复它 - 只需在创建容器时安装C ++运行库。  
以下是我使用dockerfile进行的操作:
首先从
下载vcredist http://www.microsoft .com / zh-CN / download / details.aspx?id = 30679
DockerFile:
来自windowsservercore
ADD vcredist_x86.exe / vcredist_x86。 exe
RUN start / wait c:\ _vcredist_x86.exe / q / norestart
这篇关于Windows Server 2016容器(核心操作系统)上的DNXCore5应用程序缺少libuv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!