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.
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 \
After add -e ASPNETCORE_URLS http://*:5000, the issue no longer exist.
Most helpful comment
Probably you don't want loopback in docker. Set ASPNETCORE_URLS to with the port your image is exposing).
http://*:<port>(replace \