0
votes

I have a simple aspnetcore web application and below is the dockerfile,

FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
COPY ./out .
ENTRYPOINT ["dotnet", "samplewebapp.dll"]

When I'm trying to do docker build docker build -t samplewebapp ., I am getting below error,

Sending build context to Docker daemon 1.651MB Step 1/4 : FROM microsoft/dotnet:aspnetcore-runtime aspnetcore-runtime: Pulling from microsoft/dotnet no matching manifest for windows/amd64 10.0.17134 in the manifest list entries

What this mean and what is the solution for it?

1
I faced similar issue, please do check the explanation posted for this error. stackoverflow.com/a/61465075/4613139Bhavesh Desai

1 Answers

1
votes

seems like microsoft/dotnet:aspnetcore-runtime is Linux container and you are running window mode, you need to switch to Linux containers.

Also according to new version you can add --platform but you can try to pull image first and then build the image.

enter image description here blog/docker-for-windows-18-02-with-windows-10-fall-creators-update

Another option is the experimental mode.

enter image description here docker-for-windows