在执行此操作时,尝试在Docker服务器核心2016映像上运行大的DISM命令:
Dism.exe /online /enable-feature /featurename:IIS-WebServerRole /featurename:IIS-WebServer /featurename:IIS-CommonHttpFeatures /featurename:IIS-StaticContent /featurename:IIS-DefaultDocument /featurename:IIS-DirectoryBrowsing /featurename:IIS-HttpErrors /featurename:IIS-ApplicationDevelopment /featurename:IIS-ASP /featurename:IIS-CGI /featurename:IIS-ISAPIExtensions /featurename:IIS-ISAPIFilter /featurename:IIS-ServerSideIncludes /featurename:IIS-HealthAndDiagnostics /featurename:IIS-HttpLogging /featurename:IIS-RequestMonitor /featurename:IIS-Security /featurename:IIS-BasicAuthentication /featurename:IIS-WindowsAuthentication /featurename:IIS-RequestFiltering /featurename:IIS-Performance /featurename:IIS-HttpCompressionStatic /featurename:IIS-WebServerManagementTools /featurename:IIS-ManagementScriptingTools /featurename:IIS-IIS6ManagementCompatibility /featurename:IIS-Metabase /featurename:IIS-WMICompatibility /featurename:IIS-LegacyScripts /featurename:WAS-WindowsActivationService /featurename:WAS-ProcessModel /featurename:WAS-ConfigurationAPI /featurename:IIS-ManagementService /featurename:MSMQ-Server /featurename:MSMQ-Services /featurename:MSMQ /featurename:NetFx4Extended-ASPNET45 /featurename:IIS-ASPNET45 /featurename:IIS-NetFxExtensibility45 /featurename:WCF-HTTP-Activation45 /featurename:WCF-TCP-PortSharing45
我得到error: 0x800f0922
完整的DISM日志:
DISM DISM Package Manager: PID=1952 TID=2480 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-WebServerRole" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-WebServerRole" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-WebServer" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-WebServer" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-CommonHttpFeatures" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-CommonHttpFeatures" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-StaticContent" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-StaticContent" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-DefaultDocument" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-DefaultDocument" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-DirectoryBrowsing" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-DirectoryBrowsing" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-HttpErrors" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-HttpErrors" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ApplicationDevelopment" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ApplicationDevelopment" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ASP" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ASP" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-CGI" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-CGI" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ISAPIExtensions" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ISAPIExtensions" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ISAPIFilter" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ISAPIFilter" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ServerSideIncludes" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ServerSideIncludes" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-HealthAndDiagnostics" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-HealthAndDiagnostics" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-HttpLogging" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-HttpLogging" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-RequestMonitor" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-RequestMonitor" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-Security" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-Security" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-BasicAuthentication" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-BasicAuthentication" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-WindowsAuthentication" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-WindowsAuthentication" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-RequestFiltering" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-RequestFiltering" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-Performance" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-Performance" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-HttpCompressionStatic" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-HttpCompressionStatic" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-WebServerManagementTools" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-WebServerManagementTools" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ManagementScriptingTools" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ManagementScriptingTools" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-IIS6ManagementCompatibility" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-IIS6ManagementCompatibility" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-Metabase" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-Metabase" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-WMICompatibility" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-WMICompatibility" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-LegacyScripts" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-LegacyScripts" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "WAS-WindowsActivationService" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "WAS-WindowsActivationService" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "WAS-ProcessModel" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "WAS-ProcessModel" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "WAS-ConfigurationAPI" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "WAS-ConfigurationAPI" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ManagementService" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ManagementService" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "MSMQ-Server" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "MSMQ-Server" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "MSMQ-Services" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "MSMQ-Services" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "MSMQ" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "MSMQ" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "NetFx4Extended-ASPNET45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "NetFx4Extended-ASPNET45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-ASPNET45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-ASPNET45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "IIS-NetFxExtensibility45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "IIS-NetFxExtensibility45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "WCF-HTTP-Activation45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "WCF-HTTP-Activation45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered the option "featurename" with value "WCF-TCP-PortSharing45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2019-06-21 15:46:58, Info DISM DISM Package Manager: PID=1952 TID=2480 Encountered an unknown option "featurename" with value "WCF-TCP-PortSharing45" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
我正在通过带有服务器核心LTSC 2016标签的docker镜像来编写此文件。我通过复制安装文件来手动安装.NET 3.5,为什么会发生整个事情?是因为它是核心吗?如果可以,我该怎么做才能解决这个问题?