0

我正在尝试使用 net.pipe 但没有运气让它与 docker 一起使用。我可以使用运行 IIS 的 Windows Server 2016 VM 来解决这个问题。有关如何使其工作的任何信息或示例都将非常有帮助!

服务器信息 操作系统:Windows Server 2016 DockerFile:FROM microsoft/windowsservercore Docker for Windows

Internet -> 端口 80 和 443 -> ASP.NET MVC 前端 -> net.pipe -> WCF 服务

WCF 端点

DockerFile

RUN Install-WindowsFeature -name NET-WCF-Pipe-Activation45
RUN Import-Module "WebAdministration"; 
New-Item IIS:\AppPools\NewPool; 
New-Item IIS:\Sites\NewSite -physicalPath 'C:\Service' -bindings @{protocol='https';bindingInformation='*:19001:'}; 
New-ItemProperty 'IIS:\Sites\NewSite' -name bindings -Value @{protocol='net.pipe';bindingInformation='localhost/servicelocation'}; 
Set-ItemProperty IIS:\Sites\NewSite -name applicationPool -value NewPool; 
Set-ItemProperty IIS:\Sites\NewSite -name EnabledProtocols -Value 'http,net.pipe'
4

0 回答 0