用于容器的Azure Web应用程序-容器无法连接到外部WCF服务
我有一个windows容器作为Azure Web App,它与容器外的WCF服务有连接,当我在本地测试容器的功能时,它可以工作,但不能在Azure中工作 我在容器内的应用程序中有一个日志文件。它说:用于容器的Azure Web应用程序-容器无法连接到外部WCF服务,azure,docker,azure-web-app-service,containers,azure-web-app-for-containers,Azure,Docker,Azure Web App Service,Containers,Azure Web App For Containers,我有一个windows容器作为Azure Web App,它与容器外的WCF服务有连接,当我在本地测试容器的功能时,它可以工作,但不能在Azure中工作 我在容器内的应用程序中有一个日志文件。它说: 无法解析远程名称:“XXXXXX.azurewebsites.net”要在Windows容器应用中设置公共DNS服务器,可以运行以下命令: $nic = Get-NetAdapter Set-DnsClientServerAddress -InterfaceIndex $nic.IfIndex -S
无法解析远程名称:“XXXXXX.azurewebsites.net”要在Windows容器应用中设置公共DNS服务器,可以运行以下命令:
$nic = Get-NetAdapter
Set-DnsClientServerAddress -InterfaceIndex $nic.IfIndex -ServerAddresses ('8.8.8.8')
有关更多详细信息,您可以阅读。谢谢您的帮助,您的答案是解决方案的一部分,我发现我需要在windows容器中对我的应用程序应用延迟。我不知道为什么,但当应用程序启动时,容器没有网络通信
在本文中,表示这是Windows Server Core 2016基本容器的ACI错误
我猜Azure容器应用服务在Windows服务器核心2019基本容器中也存在同样的问题