0

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?

user584018
  • 10,186
  • 15
  • 74
  • 160
  • I faced similar issue, please do check the explanation posted for this error. https://stackoverflow.com/a/61465075/4613139 – Bhavesh Desai Apr 28 '20 at 10:33

1 Answers1

1

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

Adiii
  • 54,482
  • 7
  • 145
  • 148
  • Thanks... How to know windows container for aspnetcore – user584018 Nov 26 '19 at 07:22
  • 1
    sorry, you can find one below at the link https://hub.docker.com/_/microsoft-dotnet-core-aspnet/ , these are window server. https://github.com/dotnet/dotnet-docker/blob/5c25dd2ed863dfd73edb1a6381dd9635734d0e5f/3.0/aspnet/nanoserver-1809/amd64/Dockerfile – Adiii Nov 26 '19 at 07:33