I have an ASP.NET Core 8 Web API that I need to run in a linux container, and I am not using Docker desktop. My problem is that I don’t know what the right based to use in my Dockerfile. The first part of my current Dockerfile looks like this:
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
But I am getting the following build error at docker build:
Step 1/18 : FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
8.0: Pulling from dotnet/aspnet
no matching manifest for windows/amd64 10.0.20348 in the manifest list entries
I specify Linux container in my API’s project file as the following
I also tried
docker pull mcr.microsoft.com/dotnet/aspnet:8.0
but I got the following message for that command
no matching manifest for windows/amd64 10.0.20348 in the manifest list entries
Any ideas?
Update
docker version result
7