Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest when building docker image

I get the error:

failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest

when building the following Dockerfile:

FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8
COPY . /inetpub/wwwroot
like image 315
MiguelSlv Avatar asked Dec 10 '22 23:12

MiguelSlv


1 Answers

The cause was simple, i had my docker desktop running on linux containers and the image is build from a windows image.

Simply switching to windows containers solved the problem.

The message is clueless, so i hope this save some time to others.

like image 114
MiguelSlv Avatar answered Apr 09 '23 05:04

MiguelSlv