Why does this error appear when trying to create an image?


DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
Docker Build architecture | Docker Docs

Sending build context to Docker daemon 22.53kB
Step 1/14 : FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:7.0 as build
failed to parse platform : “” is an invalid component of “”: platform specifier component must match “[1]+$”: invalid argument


  1. A-Za-z0-9_- ↩︎