最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Why facing issue while building image for asp .net web app - Stack Overflow

programmeradmin1浏览0评论

Why facing issue while building image for asp web app. while building I am getting below issue:

Step 9/17 : RUN dotnet restore "SpendSmart.csproj" ---> Running in 8684c0f97c9c hcs::CreateComputeSystem 8684c0f97c9ccf267d7006f3a681e901bf0edac4b01b5ea815abd638e34e4f60: The request is not supported.

below is the Docker file:

FROM mcr.microsoft/dotnet/aspnet:8.0-windowsservercore-ltsc2019 AS base
WORKDIR /app
EXPOSE 5000

ENV ASPNETCORE_URLS=http://+:5000

FROM mcr.microsoft/dotnet/sdk:8.0-windowsservercore-ltsc2019 AS build
ARG configuration=Release
WORKDIR /src
COPY ["SpendSmart.csproj", "./"]
RUN dotnet restore "SpendSmart.csproj"
COPY . .
WORKDIR "/src/."
RUN dotnet build "SpendSmart.csproj" -c $configuration -o /app/build
RUN dotnet publish "SpendSmart.csproj" -c $configuration -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "SpendSmart.dll"]

below is the docker info: Client: Version: 28.0.1 Context: default Debug Mode: false

Server: Containers: 3
Running: 0
Paused: 0 Stopped: 3 Images: 9 Server Version: 28.0.1 Storage Driver: windowsfilter Windows: Plugins: Volume: local Network: ics internal l2bridge l2tunnel nat null overlay private transparent Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog Swarm: inactive Default Isolation: hyperv Kernel Version: 10.0 19045 (19041.1.amd64fre.vb_release.191206-1406) OSType: windows Architecture: x86_64 CPUs: 16 Total Memory: 31.73GiB Name: pnchakurkar Docker Root Dir: C:\ProgramData\docker Debug Mode: false Insecure Registries: ::1/128 127.0.0.0/8 Live Restore Enabled: false Product License: Community Engine

same issue when I tried to run the image mcr.microsoft/dotnet/aspnet:8.0-windowsservercore-ltsc2019

I am not using docker desktop.

I have configured docker feature using below document:

Any suggestions??? please help

发布评论

评论列表(0)

  1. 暂无评论