gpt4 book ai didi

asp.net - 在Docker容器中安装ASP.Net 3.5

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

我正在尝试使用以下命令在Windows docker容器中安装ASP.Net 3.5

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All 

我收到以下错误

Deployment Image Servicing and Management tool Version: 10.0.17763.1

Image Version: 10.0.17763.615

Enabling feature(s) [==========================100.0%==========================]

Error: 1058

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log



我也尝试了不同的powershell命令,例如,但是没有运气。得到同样的错误
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET

任何人都面临这个问题,任何解决方法或解决方案?

最佳答案

https://superuser.com/questions/1498853/cannot-install-windows-feature-net-framework-features-in-docker-image中回答
示例(使用mcr.microsoft.com/windows:1809):

PS> Set-Service -Name wuauserv -StartupType Manual
PS> DISM /Online /Enable-Feature:NetFx3 /All

Deployment Image Servicing and Management tool
Version: 10.0.17763.1282

Image Version: 10.0.17763.1457

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

关于asp.net - 在Docker容器中安装ASP.Net 3.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57171397/

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