首页 > 其他分享 >on the IPv6 loopback interface: 'Cannot assign requested address'

on the IPv6 loopback interface: 'Cannot assign requested address'

时间:2022-09-27 10:58:22浏览次数:81  
标签:requested http 44303 loopback 0.0 Cannot urls address

.netcore +docker 

 

需要修改两个地方

Dockerfile

添加 ENV ASPNETCORE_URLS=http://+:44303  

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
ENV ASPNETCORE_URLS=http://+:44303
WORKDIR /app
EXPOSE 44303

 

appsettings.json

"urls": "http://localhost:44303"

改为

"urls": "http://0.0.0.0:4003"

标签:requested,http,44303,loopback,0.0,Cannot,urls,address
From: https://www.cnblogs.com/ccqin/p/16733755.html

相关文章