Kestrelhttpserver: Microsoft.AspNetCore.Server.Kestrel[0]

Created on 15 Oct 2017  路  3Comments  路  Source: aspnet/KestrelHttpServer

run a razor example in linux docker, show some error

warn: Microsoft.AspNetCore.Server.Kestrel[0]
Unable to bind to http://localhost:5000 on the IPv6 loopback interface: 'Error -99 EADDRNOTAVAIL address not available'.
Hosting environment: Production
Content root path: /PEGA
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

Most helpful comment

Probably you don't want loopback in docker. Set ASPNETCORE_URLS to http://*:<port> (replace \ with the port your image is exposing).

All 3 comments

on the IPv6 loopback

Does your server have ipv6 on loopback?

Probably you don't want loopback in docker. Set ASPNETCORE_URLS to http://*:<port> (replace \ with the port your image is exposing).

After add -e ASPNETCORE_URLS http://*:5000, the issue no longer exist.

Was this page helpful?
0 / 5 - 0 ratings