我正在尝试在 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/