Cannot run asp.net 5 from docker

前端 未结 4 424
清酒与你
清酒与你 2020-12-17 01:47

I have followed the following guide: Running ASP.NET 5 applications in Linux Containers with Docker and I cannot get this to work on my Windows PC or Linux server. My docker

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 02:04

    You can find a working, step-by-step tutorial for Docker and ASP.NET Core RC1 here: https://www.sesispla.net/blog/language/en/2015/12/recipe-asp-net-5-net-core-to-the-docker-container/

    The tricky part probably you are missing is to modify your projects.json command as follows:

      "commands": {
        "web": "Microsoft.AspNet.Server.Kestrel --server.urls http://0.0.0.0:5000"
      },
    

    By default, kestrel only accepts localhost connections... With this change you allow connection from any source.

提交回复
热议问题