首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在linux中与非root用户一起运行Aspnetcode

问在linux中与非root用户一起运行Aspnetcode
EN

Stack Overflow用户
提问于 2017-08-11 13:37:29
回答 1查看 3K关注 0票数 5

我试图与非根用户一起在docker映像(从microsoft/ aspnetcore继承)中运行veery简单的hello world aspnetcore应用程序,并得到以下错误:

Microsoft.AspNetCore.Server.Kestrel无法启动Kestrel。System.AggregateException:发生了一个或多个错误。(错误-13 EACCES权限被拒绝)( Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle.Bind(ServerAddress地址的Int32标志))在Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.b__8_0(Object州的Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListenerPrimary.CreateListenSocket() )--从抛出异常的前一个位置开始的堆栈跟踪的结束--在System.Runtime.CompilerServices处的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()。( TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task任务)在Microsoft.AspNetCore.Server.Kestrel.Internal.Http.ListenerPrimary.d__12.MoveNext() -内部异常堆栈跟踪的末尾-在System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,( Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle.Bind(ServerAddress地址的Int32标志))在Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.b__8_0(Object州的Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListenerPrimary.CreateListenSocket() )--从抛出异常的前一个位置开始的堆栈跟踪的结束--在System.Runtime.CompilerServices处的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()。( TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task任务)在Microsoft.AspNetCore.Server.Kestrel.Internal.Http.ListenerPrimary.d__12.MoveNext()<

似乎在没有根权限的情况下无法运行aspnetcore,而且在某些安全策略非常有限的情况下,root用户不允许运行停靠者映像的主要进程。

是否有任何方式在linux中与非根用户一起运行aspnetcore应用程序?

Sudo选项是无效的,因为相同的安全策略。

谢谢,

EN

回答 1

Stack Overflow用户

发布于 2017-08-11 13:59:53

最后,问题是我试图使用端口80绑定我的应用程序。如果您使用较高的端口,即5000端口。权限没有问题。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45636622

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档