asp.net - 无法使用 Docker 在 Azure 上的 VM 上部署 ASP .net vnext 应用程序

标签 asp.net ssl docker asp.net-core

我正在尝试在 Azure VM (ubuntu) 上部署 asp .net 5 示例应用程序。我正在为 Visual Studio 15 使用 Docker 工具。 我正在关注 http://www.hanselman.com/blog/PublishingAnASPNET5AppToDockerOnLinuxWithVisualStudio.aspx

流程一; 我已按照以下步骤操作; 1. 使用 VS15 创建示例应用程序 2.发布向导,创建新VM 3.发布,保持相同的主机和容器端口80。 4.使用azure portal暴露80端口

发布成功,但用IE打开显示页面无法显示。

我什至创建了多个虚拟机并进行了相同的尝试但没有成功。

过程2; 我正在尝试使用 docker 客户端创建图像,但它给出了 TLS 错误。 您是否尝试在没有 TLS 的情况下连接到启用 TLS 的守护进程? 我什至在我的笔记本电脑上也有这个。它正在尝试使用 127.0.0.1:2375 创建图像

有人可以帮忙吗?

我检查了容器日志;以下是详细信息。

 System.InvalidOperationException: Failed to resolve the following
     dependencies for target framework 'DNX,Version=v4.5.1':

当前运行时目标框架:'DNX,Version=v4.5.1 (dnx451)' 版本:1.0.0-beta7-15532 类型:单声道 架构:x64 操作系统名称:Linux

   at Microsoft.Dnx.ApplicationHost.Program.Main (System.String[] args)      [0x00000]
 in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()   [0x00000] i
n <filename unknown>:0
 at Microsoft.Dnx.Runtime.Commo`enter code here`n.EntryPointExecutor.Execute     (System.Reflection.

Assembly assembly, System.Strenter code hereing[] args, IServiceProvider serviceProvider) [0x00 000] 在:0 在 Microsoft.Dnx.Host.Bootstrapper.RunAsync(System.Collections.Generic.List`1 args, IRuntimeEnvironment env, System.Runtime.Versioning.FrameworkName targetFr amework) [0x00000] in :0

最佳答案

侯赛因, 你能试试下面提到的两个链接吗?如果您仍然遇到问题,请告诉我。我将与您一起解决问题。

https://weblogs.asp.net/scottgu/announcing-windows-server-2016-containers-preview https://channel9.msdn.com/Series/Docker-for-NET-Developers/Deploy-your-ASPNET-5-App-to-a-Docker-Container-in-five-minutes

关于asp.net - 无法使用 Docker 在 Azure 上的 VM 上部署 ASP .net vnext 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32492802/

相关文章:

docker - apache启动后运行drush命令

macos - 如何在Mac OS X上启用Docker远程api

docker - 无法启动 Docker 服务并出现错误 "Failed to start docker.service: Unit not found."

c# - 如何确定页面上是否需要 Asp.net Scriptmanager

jquery - JVectorMap 的 map ?

firefox - F5 负载平衡器和 Fortigate 200d 防火墙之间的 TLSv1.2 问题 - SSL 错误 Bad MAC Read

Tomcat 7 : automatically redirect https requests to port 8443

asp.net - ASP.NET 中的 SMTP header 注入(inject)?

c# - 在 AngularJS $http 中传递日期到 ASP.NET Web Api

xcode - 在 MacOS Sierra 上找不到“openssl/conf.h”文件错误